Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pixijs

БесплатноБез исполняемых скриптовНе проверен

PixiJS v8 (pixi.js) reference. Use it before writing, fixing or porting any PixiJS code, from a one-line fix to a whole app or game. Routes to topic files…

pixijsот pixijs★ 394 звезды на GitHub

Об этом скилле

Read before you write

  1. List the files. Write down every router row below that your task touches: each class you construct, options object you pass, effect you build and symptom you fix. A whole app usually lists four to eight (an eraser paint app: application, assets, scene-sprite, events, blend-modes; a game: application, assets, scene-sprite, events, ticker, scene-text).
  2. Read each listed file before you write the code for that part, even for a one-line change. Open the file itself; a Grep hit is a fragment that drops the rule and the exception beside it. Each topic file links to its sub-pages for rarer branches.
  3. Done when every file on your list has been opened. Then check your code against the pitfall group below for each feature you built.

No row fits: scan references/index.md (sub-pages, long-tail keywords, error strings), then the project's local PixiJS docs.

For a signature or option this skill doesn't cover, fetch the class's API page: https://pixijs.download/release/docs/<module>.<Class>.html.md (app.Application, scene.Graphics, rendering.Texture, assets.Assets). To find a class's module, look it up in https://pixijs.download/release/docs/llms.txt.

Pitfalls that fail silently

Each line is the fix; its link owns the rule and the code. These run without errors and draw the wrong thing, and a Vite build doesn't type-check, so run npx tsc --noEmit to catch wrong option names.

App setup and the frame loop

  • const app = new Application(); await app.init({ ... }). Constructor options are ignored; until init resolves app.renderer is undefined and app.canvas/app.screen throw. application
  • Top-level await fails vite build on Vite 6 and older; wrap init in an async IIFE. create
  • With resizeTo, lay out in app.renderer.on('resize', (w, h) => ...); your own window resize listener reads the old app.screen. An element target also needs new ResizeObserver(() => app.queueResize()). application
  • Ticker callbacks receive the Ticker: app.ticker.add((t) => (s.x += 2 * t.deltaTime)). deltaTime is ~1 per 60 fps frame, deltaMS is milliseconds. ticker
  • app.ticker.update() already renders, even with autoStart: false; skip the extra app.render(). ticker
  • Per-object frame logic: obj.onRender = () => { ... } (replaces v7 updateTransform overrides); it also runs while the object is invisible. Name subclass methods anything but _onRender. ticker
  • Read canvas pixels from a listener at UPDATE_PRIORITY.UTILITY, which runs after the render. ticker

Loading assets and textures

  • await Assets.init({ basePath, manifest }) before the first load, loadBundle or backgroundLoad; a later init is dropped. assets
  • Assets.load([a, b]) resolves an object keyed by URL or alias: read res[a]. assets
  • A URL with no file extension (?id=, blob:, API route) needs Assets.load({ src, parser: 'texture' }); without it the result is null with only a warning. Audio files have no loader and also resolve null; play sound with @pixi/sound or HTMLAudioElement. assets
  • Texture.from(url) and Sprite.from(url) read the cache only (v7 fetched): await Assets.load(url) first. scene-sprite
  • Wrap a TextureSource (CanvasSource, texture.source): Sprite.from(source) or new Sprite(Texture.from(source)); new Sprite(source) draws nothing. scene-sprite
  • Show another region with sprite.texture = new Texture({ source, frame: new Rectangle(...) }), or create the texture with dynamic: true and call texture.update(). scene-sprite
  • After drawing into a source canvas, call texture.source.update(). sprite
  • Per-asset data (scaleMode, resolution) applies on the first load of a src only; set texture.source.scaleMode on the result instead. assets

Sprites and animation

  • AnimatedSprite: animationSpeed is frames per 60 fps tick (12 fps is 0.2), and it needs autoPlay: true or play(). It runs on Ticker.shared, so app.ticker.stop() doesn't pause it. animated-sprite
  • Call play() after each anim.textures = ... swap; replay a finished one-shot with gotoAndPlay(0). [animated-
Полный SKILL.md на GitHub

Установить pixijs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/accessibility.mdreferences/application.mdreferences/application/application-options.mdreferences/assets.mdreferences/assets/background.mdreferences/assets/bundles.mdreferences/assets/caching.mdreferences/assets/compressed-textures.mdreferences/assets/fonts.mdreferences/assets/manifests.mdreferences/assets/progress.mdreferences/assets/resolution.mdreferences/assets/spritesheet.mdreferences/assets/svg.mdreferences/assets/video.mdreferences/blend-modes.mdreferences/color.mdreferences/core-concepts.mdreferences/core-concepts/renderers.mdreferences/create.mdreferences/custom-rendering.mdreferences/custom-rendering/advanced-gpu.mdreferences/custom-rendering/uniform-types.mdreferences/environments.mdreferences/events.mdreferences/filters.mdreferences/filters/multi-pass.mdreferences/filters/wgsl-filter.mdreferences/html-source.mdreferences/index.mdreferences/math.mdreferences/migration-v8.mdreferences/performance.mdreferences/scene-container.mdreferences/scene-core-concepts.mdreferences/scene-core-concepts/constructor-options.mdreferences/scene-core-concepts/layers.mdreferences/scene-core-concepts/masking.mdreferences/scene-core-concepts/render-groups.mdreferences/scene-core-concepts/transforms.md

FAQ

Что делает скилл pixijs?

PixiJS v8 (pixi.js) reference. Use it before writing, fixing or porting any PixiJS code, from a one-line fix to a whole app or game. Routes to topic files: Application (app.init, resizeTo, resolution), Container scene graph (addChild, zIndex, RenderLayer, mask, destroy), Sprite, Texture, AnimatedSprite, TilingSprite, NineSliceSprite, Graphics (fill, stroke, FillGradient, SVG, SmoothGraphics), Text, BitmapText, HTMLText, SplitText, Mesh, MeshRope, ParticleContainer, Assets (load, bundles, Spritesheet, fonts, video), Ticker and onRender, events (eventMode, pointertap, drag, hitArea), filters and shaders (BlurFilter, Filter.from, GlProgram), blendMode and erasing into a RenderTexture, generateTexture, cacheAsTexture, Color, Point, Matrix, DOMContainer, GifSprite, HTMLSource, accessibility, performance and teardown, WebGL/WebGPU/Canvas renderers, Web Workers, custom builds, project setup, migration from v7.

Как установить скилл pixijs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pixijs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pixijs с