MCPcopy
hub / github.com/pixijs/pixijs

github.com/pixijs/pixijs @v8.19.0 sqlite

repository ↗ · DeepWiki ↗ · release v8.19.0 ↗
4,963 symbols 14,317 edges 1,499 files 1,453 documented · 29%
README

PixiJS logo

npm package npm downloads open collective

Guides | Tutorials | Examples | API Docs | Discord | Bluesky | 𝕏

PixiJS ⚡️

Next-Generation, Fastest HTML5 Creation Engine for the Web

  • 🚀 WebGL & 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 CLI and get set up in just one command:

Screenshot from terminal

npm create pixi.js@latest

or to add it to an existing project:

npm install pixi.js

Usage

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;
    });
})();

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 before submitting changes.

License

This content is released under the MIT License.

Change Log

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.

Extension points exported contracts — how you extend this code

Cleanable (Interface)
Interface for objects that can be cleaned up by the PoolCollector. [16 implementers]
src/utils/pool/GlobalResourceRegistry.ts
Effect (Interface)
(no doc) [10 implementers]
src/scene/container/Effect.ts
ShapePrimitive (Interface)
(no doc) [12 implementers]
src/maths/shapes/ShapePrimitive.ts
ApplicationPlugin (Interface)
(no doc) [32 implementers]
src/app/Application.ts
IHitArea (Interface)
(no doc) [7 implementers]
src/events/FederatedEventTarget.ts
GCable (Interface)
(no doc) [6 implementers]
src/rendering/renderers/shared/GCSystem.ts
AssetExtensionAdvanced (Interface)
* A more verbose version of the AssetExtension, * allowing you to set the cached, loaded, parsed, and unloaded asset se
src/assets/AssetExtension.ts
ExtensionMetadataDetails (Interface)
* The metadata for an extension. * @category extensions * @ignore
src/extensions/Extensions.ts

Core symbols most depended-on inside this repo

addChild
called by 1541
src/scene/container/container-mixins/childrenHelperMixin.ts
push
called by 519
src/filters/FilterPipe.ts
set
called by 433
src/maths/point/Point.ts
destroy
called by 368
src/scene/container/Effect.ts
fill
called by 361
src/scene/text/TextStyle.ts
add
called by 345
src/math-extras/MathExtraMixins.d.ts
rect
called by 298
src/scene/graphics/shared/Graphics.ts
load
called by 294
src/assets/Assets.ts

Shape

Method 2,212
Function 1,662
Class 624
Interface 444
Enum 21

Languages

TypeScript100%

Modules by API surface

transcoders/ktx/libktx.js506 symbols
transcoders/basis/basis_transcoder.js166 symbols
src/scene/graphics/shared/Graphics.ts62 symbols
src/scene/graphics/shared/GraphicsContext.ts52 symbols
src/scene/container/Container.ts42 symbols
src/scene/text/TextStyle.ts37 symbols
src/events/EventBoundary.ts36 symbols
src/scene/graphics/shared/path/GraphicsPath.ts33 symbols
src/scene/container/bounds/Bounds.ts33 symbols
src/rendering/renderers/shared/renderTarget/RenderTargetSystem.ts30 symbols
src/color/Color.ts30 symbols
src/scene/graphics/shared/path/ShapePath.ts29 symbols

Dependencies from manifests, versioned

@babel/core7.28.6 · 1×
@babel/plugin-transform-modules-commonjs7.28.6 · 1×
@pixi/colord2.9.6 · 1×
@pixi/eslint-config6.0.0 · 1×
@pixi/jest-electron26.1.0 · 1×
@pixi/webworker-plugins1.0.1 · 1×
@preact/preset-vite2.9.0 · 1×
@rollup/plugin-alias6.0.0 · 1×
@rollup/plugin-commonjs29.0.0 · 1×
@rollup/plugin-json6.1.0 · 1×
@rollup/plugin-node-resolve16.0.3 · 1×
@types/earcut3.0.0 · 1×

For agents

$ claude mcp add pixijs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact