https://github.com/pixijs/pixijs
The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.
https://github.com/pixijs/pixijs
canvas canvas2d data-visualization game glsl javascript pixi pixijs renderer rendering rendering-2d-graphics rendering-engine webgl
Last synced: about 2 months ago
JSON representation
The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.
- Host: GitHub
- URL: https://github.com/pixijs/pixijs
- Owner: pixijs
- License: mit
- Created: 2013-01-21T22:40:50.000Z (almost 14 years ago)
- Default Branch: dev
- Last Pushed: 2026-10-10T15:14:52.000Z (about 2 months ago)
- Last Synced: 2026-10-12T09:26:08.889Z (about 2 months ago)
- Topics: canvas, canvas2d, data-visualization, game, glsl, javascript, pixi, pixijs, renderer, rendering, rendering-2d-graphics, rendering-engine, webgl
- Language: TypeScript
- Homepage: http://pixijs.com
- Size: 132 MB
- Stars: 48,346
- Watchers: 984
- Forks: 5,089
- Open Issues: 382
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-ccamel - pixijs/pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (TypeScript)
- awesome-web-animation - PixiJS - Fast 2D WebGL renderer for interactive graphics and animation. (Canvas)
- awesome-javascript - PixiJS - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (Application Development / Game Engines)
- awesome-frontend - pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.  (Repository / WebGL)
- awesome-luooooob - pixijs/pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (TypeScript)
- awesomeLibrary - pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (语言资源库 / typescript)
- awesome-canvas - pixijs - \[[Online Demo](https://www.goodboydigital.com/pixijs/storm/?base=pixijs&category=storm)\] - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.   (Libraries / Game engine)
- awesome-game-engine-dev - PixiJS - 🔥 - Fast, lightweight 2D library. \[[Awesome](https://github.com/cursedcoder/awesome-pixijs) | [Editor](https://github.com/Megabyteceer/thing-editor) | [Essentials](https://github.com/ShukantPal/pixi-essentials) | [Website](https://pixijs.com/)\] (Libraries / JavaScript)
- awesome-typescript - pixijs/pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (Graphics and Media / Graphics and Rendering)
- awesome-starred - pixijs/pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (data-visualization)
- awesome-list - pixijs
- awesome - pixijs/pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (TypeScript)
- Github-Ultimate-Repos - pixijs/pixijs - | ⭐ 48,459★ | 🍴 5,105 | 💻 `TypeScript`🔗 <https://github.com/pixijs/pixijs>📝 The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.⚙️ `Deterministic game loop: input capture -> physics tick & collision broadphase/narrowphase -> scene graph spatial tree traversal -> Vulkan/WebGL render pass command submission.` (📜 Master Categorized Repository Directory (100% Clickable Links) / [48] GAME DEVELOPMENT ENGINES, 2D/3D GRAPHICS APIS & SHADERS (WEBGL/VULKAN))
- awesome-open-source-games - pixi.js - Super fast HTML 5 2D rendering engine that uses WebGL with canvas fallback. (Frameworks/Engines/Libraries)
- awesome - pixijs/pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (TypeScript)
- awesome - pixijs/pixijs - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer. (TypeScript)
README
Guides | Tutorials | Examples | API Docs | Discord | Bluesky | 𝕏
# PixiJS ⚡️
> Next-Generation, Fastest HTML5 Creation Engine for the Web
- 🚀 [WebGL](https://en.wikipedia.org/wiki/WebGL) & [WebGPU](https://en.wikipedia.org/wiki/WebGPU) Renderers
- ⚡️ Unmatched Performance & Speed
- 🎨 Easy to use, yet powerful API
- 📦 Asset Loader
- ✋ Full Mouse & Multi-touch Support
- ✍️ Flexible Text Rendering
- 📐 Versatile Primitive and SVG Drawing
- 🖼️ Dynamic Textures
- 🎭 Masking
- 🪄 Powerful Filters
- 🌈 Advanced Blend Modes
PixiJS is the fastest, most lightweight 2D library available for the web, working
across all devices and allowing you to create rich, interactive graphics and cross-platform applications using WebGL and WebGPU.
### Setup
It's easy to get started with PixiJS! Just use our [PixiJS Create](https://pixijs.io/create-pixi/) CLI and get set up in just one command:
```
npm create pixi.js@latest
```
or to add it to an existing project:
```
npm install pixi.js
```
### Usage
```typescript
import { Application, Assets, Sprite } from 'pixi.js';
(async () =>
{
// Create a new application
const app = new Application();
// Initialize the application
await app.init({ background: '#1099bb', resizeTo: window });
// Append the application canvas to the document body
document.body.appendChild(app.canvas);
// Load the bunny texture
const texture = await Assets.load('https://pixijs.com/assets/bunny.png');
// Create a bunny Sprite
const bunny = new Sprite(texture);
// Center the sprite's anchor point
bunny.anchor.set(0.5);
// Move the sprite to the center of the screen
bunny.x = app.screen.width / 2;
bunny.y = app.screen.height / 2;
app.stage.addChild(bunny);
// Listen for animate update
app.ticker.add((time) =>
{
// Just for fun, let's rotate mr rabbit a little.
// * Delta is 1 if running at 100% performance *
// * Creates frame-independent transformation *
bunny.rotation += 0.1 * time.deltaTime;
});
})();
```
### TypeScript
PixiJS supports WebGPU, so its type declarations depend on the WebGPU types. Where those come from depends on your TypeScript version.
**TypeScript 5:** no WebGPU types are built in, so PixiJS adds [`@webgpu/types`](https://github.com/gpuweb/types) for you. No additional setup required.
**TypeScript 6 and 7:** the WebGPU types are built into the `"dom"` library, but some releases leave parts out, such as `GPUTextureUsage`. Use [`@types/web`](https://www.npmjs.com/package/@types/web), which has the full set, in place of `"dom"`. Remove `@webgpu/types` from `types` if it's there, since it conflicts with the built-in types.
```bash
npm install --save-dev @types/web
```
```json
{
"compilerOptions": {
"lib": ["esnext"],
"types": ["@types/web"]
}
}
```
### Contribute
Want to be part of the PixiJS project? Great! All are welcome! We will get there quicker
together :) Whether you find a bug, have a great feature request, or you fancy owning a task
from the road map above, feel free to get in touch.
Make sure to read the [Contributing Guide](.github/CONTRIBUTING.md)
before submitting changes.
### License
This content is released under the [MIT License](http://opensource.org/licenses/MIT).
### Change Log
[Releases](https://github.com/pixijs/pixijs/releases)
### Support
We're passionate about making PixiJS the best graphics library possible. Our dedication comes from our love for the project and community. If you'd like to support our efforts, please consider contributing to our open collective.