I like PIXI.js as it is really easy to use, yet is really powerful.

I made this Game with it in 48 hours for ludumdare (doesnt work in mozilla, which is a fault in my code not pixi's)

Answer from woverton on Stack Overflow
🌐
Js
two.js.org
Two.js • Homepage
A renderer agnostic two-dimensional drawing api for the web.
Examples
A renderer agnostic two-dimensional drawing api for the web.
Docs
A renderer agnostic two-dimensional drawing api for the web.
Changelog
A renderer agnostic two-dimensional drawing api for the web.
🌐
GitHub
github.com › I2Djs › I2Djs
GitHub - I2Djs/I2Djs: Integrated-2D is a Javascript 2D rendering framework for SVG, Canvas, and WebGL contexts. I2Djs provides the same API for all rendering contexts.
Integrated-2D is an open-source JavaScript framework for rendering 2D graphics in SVG, Canvas, WebGL, and PDF contexts.
Starred by 90 users
Forked by 5 users
Languages   JavaScript 100.0% | JavaScript 100.0%
Discussions

What is the best 2d graphic library for javascript? - Stack Overflow
I want to make simple 2d game using javaScript. What should i know before i start? I'm a c# programmer and I don't have much experience with js. Is there any design patterns should i know about? More on stackoverflow.com
🌐 stackoverflow.com
Best javascript library/ framework for developing 2D game Website
You might want to stick to React if you're used to that and all game graphics can be expressed as html/css. If you use a framework like phaser or raw canvas, you'll end-up re-implementing some of standard html goodies like cross-platform input (mouse/touch/keyboard), accessibility, etc. Only If shader-based graphical effects are needed, you'll have to use canvas with webgl, and then a framework like pixijs or phaser is a good choice. More on reddit.com
🌐 r/GameDevelopment
5
2
September 20, 2024
Best library for 2d graphic?
You can use a game library like Phaser, Pixi or Babylon for your 2D game, and render the output of that canvas element to a texture in ThreeJS. More on reddit.com
🌐 r/threejs
4
2
May 12, 2023
Which JavaScript graphics library has the best performance? - Stack Overflow
The core advice is still the same: ... avoiding SVG (and any library built on top of it) because it may cause performance issues when trying to rapidly change the DOM. Canvas is the go-to solution for high performance web graphics, both for the 2d and 3d (webgl) conte... More on stackoverflow.com
🌐 stackoverflow.com
🌐
PixiJS
pixijs.com
PixiJS | The HTML5 Creation Engine | PixiJS
PixiJS - The HTML5 Creation Engine. Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.
🌐
Creative Bloq
creativebloq.com › web design
11 JavaScript frameworks for creating graphics | Creative Bloq
September 22, 2021 - Twos.js comes into its own when handling 2D animation (Image credit: Two.js) Not to be confused with D3.js, two.js is an open-source JavaScript library for two-dimensional drawing on the web.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › WebGL_API
WebGL: 2D and 3D graphics for the web - Web APIs | MDN
WebGL (Web Graphics Library) is a JavaScript API for rendering high-performance interactive 3D and 2D graphics within any compatible web browser without the use of plug-ins. WebGL does so by introducing an API that closely conforms to OpenGL ES 2.0 that can be used in HTML elements.
🌐
Konva
konvajs.org
Konva - JavaScript Canvas 2d Library
Konva is 2d Canvas JavaScript framework for drawings shapes, animations, node nesting, layering, filtering, event handling, drag and drop and much more.
🌐
npm
npmjs.com › search
keywords:2D Graphics - npm search
2D · 3D · graphics · awayfoundation• 0.2.435 • 2 months ago • 1 dependents • Apache-2.0published version 0.2.435, 2 months ago1 dependents licensed under $Apache-2.0 · 38,552 · Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.
Find elsewhere
🌐
Reddit
reddit.com › r/gamedevelopment › best javascript library/ framework for developing 2d game website
r/GameDevelopment on Reddit: Best javascript library/ framework for developing 2D game Website
September 20, 2024 -

Hi, I’m working on a 2D board game website that’s not real-time, where players move tokens around the board based on various rules. I’m proficient with React, and I’m wondering if it’s the right choice for building this type of game, or if I should consider a game-specific framework like Phaser.js or just use plain JavaScript with Canvas.

The game will have customizable features like token placement, movement, and the number of tokens. I’d like to know what others think would be the best approach to develop this type of game and handle these customizations.

Any advice on frameworks/libraries or even game logic implementation tips would be much appreciated!

🌐
GitHub
github.com › sameerb › jsDraw2D
GitHub - sameerb/jsDraw2D: Javascript Graphics Library
This is a pure JavaScript library to draw 2D graphics without using SVG,VML or Canvas. The library just uses div elements to construct the shapes. Along with all basics shapes like line, rectangle, polygon, circle, ellipse and arc, it can also draw the advanced shapes like curves and beziers.
Starred by 16 users
Forked by 17 users
Languages   JavaScript 100.0% | JavaScript 100.0%
🌐
Javascripting
javascripting.com › images › 2d-graphics
Images: 2d Graphics - javaScripting.com
The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @juerglehni & @jonathanpuckey ... Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications. ... The JavaScript library for modern SVG graphics.
🌐
K7MEM
k7mem.com › Sym_jsDraw2D.html
Martin E. Meserve - K7MEM - jsDraw2D.js - Javascript 2D Graphics Library
Javascript® Electronic Notebook by Martin E. Meserve jsDraw2D.js - Javascript 2D Graphics Library · jsDraw2D.js is a Javascript library to draw 2D graphics on web page inside web browser. The library is entirely written in Javascript and does not need any plug-in or additional software to ...
🌐
Envato Tuts+
webdesign.tutsplus.com › home › web design › html/css › svg
A Beginner's Guide to Drawing 2D Graphics With Two.js | Envato Tuts+
July 12, 2022 - Follow along and you'll learn how to create and animate shapes from JavaScript. Two.js is renderer agnostic, so you can rely on the same API to draw 2D with Canvas, SVG, or WebGL. The library has a lot of methods which can be used to control how different shapes appear on the screen or how they are animated.
🌐
Envato Tuts+
code.tutsplus.com › home › javascript
8 Best Free and Open-Source Drawing Libraries in JavaScript | Envato Tuts+
August 20, 2021 - Two.js is a pretty popular and easy-to-use library when it comes to drawing 2D shapes with JavaScript. It is very well documented, and you will have to spend very little time learning the basics. There are two things that you will like about the library. First, it is render agnostic. This means that you can use the same API to draw your graphics on the canvas element, with SVG, or with WebGL.
🌐
Libhunt
js.libhunt.com › libs › 2d
JavaScript 2D libraries | LibHunt
Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering. [Moved to: https://github.com/phaserjs/phaser] ... The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the ...
🌐
GitHub
gist.github.com › dmnsgn › 76878ba6903cf15789b712464875cfdc
A collection of WebGL and WebGPU frameworks and libraries · GitHub
| Haiku | | | 2D & 3D WebGPU game engine written in TypeScript | ... I forked this to https://github.com/trusktr/WebGL-WebGPU-frameworks-libraries to make it possible for anyone to contribute via pull request.
🌐
LMU
cs.lmu.edu › ~ray › notes › introjavascriptgraphics
JavaScript Graphics
D3 is a JavaScript library for visulaizing data in some spectactular ways. Start at the D3 Gallery then make your way to the D3 home page and find some tutorials to make your own creations. HTML features a <canvas> element, designed for drawing. Here are the docs and here is a tutorial · Canvas ...