
Description
pixijs-scene-graphics is an agent skill for drawing vector shapes and paths with the PixiJS v8 Graphics API. The API follows a shape-then-style pattern: you draw a shape or path with methods such as rect, circle and moveTo, then apply a fill or a stroke. Every method returns the Graphics object, so calls can be chained. The drawing instructions live in a GraphicsContext that can be shared between several Graphics objects. The skill stresses that Graphics is a leaf in the scene graph, so you should not nest children inside it, and that you wrap several Graphics objects in a Container to group them. The quick start draws a blue rectangle with a stroke and a red circle. The skill assumes familiarity with the scene core concepts and is published by PixiJS in the pixijs-skills repository on GitHub and listed on skills.sh.…
Highlights
- Vector shapes and paths with the Graphics API
- Shape-then-fill and stroke pattern
- Chainable methods
- Shared GraphicsContext
- Grouping with containers
Ratings & Reviews
No ratings yet
Be the first to rate pixijs-scene-graphics.
People also visit
pixijs-scene-graphics FAQ
What does this skill cover?
Drawing shapes, paths, fills and strokes with the PixiJS v8 Graphics API.
How do fills and strokes work?
You draw a shape, then apply fill and stroke, and each method returns the Graphics object so calls can be chained.
Can I put children inside a Graphics object?
No. The skill says Graphics is a leaf, so wrap several Graphics objects in a Container to group them.
How do I install it?
Run npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-scene-graphics, as listed on skills.sh.
Can I share drawing instructions?
Yes. The instructions live on a GraphicsContext that can be shared between instances.
What are the best pixijs-scene-graphics alternatives?
Popular alternatives to pixijs-scene-graphics include pixijs, pixijs-scene-core-concepts and pixijs-rendering. See all pixijs-scene-graphics alternatives

