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★ 394 звезды на GitHubОб этом скилле
Read before you write
- 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).
- 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.
- 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; untilinitresolvesapp.rendererisundefinedandapp.canvas/app.screenthrow. application- Top-level
awaitfailsvite buildon Vite 6 and older; wrap init in an async IIFE. create - With
resizeTo, lay out inapp.renderer.on('resize', (w, h) => ...); your ownwindowresize listener reads the oldapp.screen. An element target also needsnew ResizeObserver(() => app.queueResize()). application - Ticker callbacks receive the
Ticker:app.ticker.add((t) => (s.x += 2 * t.deltaTime)).deltaTimeis ~1 per 60 fps frame,deltaMSis milliseconds. ticker app.ticker.update()already renders, even withautoStart: false; skip the extraapp.render(). ticker- Per-object frame logic:
obj.onRender = () => { ... }(replaces v7updateTransformoverrides); 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 firstload,loadBundleorbackgroundLoad; a laterinitis dropped. assetsAssets.load([a, b])resolves an object keyed by URL or alias: readres[a]. assets- A URL with no file extension (
?id=,blob:, API route) needsAssets.load({ src, parser: 'texture' }); without it the result isnullwith only a warning. Audio files have no loader and also resolvenull; play sound with@pixi/soundorHTMLAudioElement. assets Texture.from(url)andSprite.from(url)read the cache only (v7 fetched):await Assets.load(url)first. scene-sprite- Wrap a
TextureSource(CanvasSource,texture.source):Sprite.from(source)ornew 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 withdynamic: trueand calltexture.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 asrconly; settexture.source.scaleModeon the result instead. assets
Sprites and animation
AnimatedSprite:animationSpeedis frames per 60 fps tick (12 fps is0.2), and it needsautoPlay: trueorplay(). It runs onTicker.shared, soapp.ticker.stop()doesn't pause it. animated-sprite- Call
play()after eachanim.textures = ...swap; replay a finished one-shot withgotoAndPlay(0). [animated-
Установить pixijs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic