graphics-and-shapes

Draw and manage shapes in Phaser 4 using Graphics and Shape objects.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/dzyamik/furry-match3 --skill graphics-and-shapes-dzyamik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphics-and-shapes
Source: https://github.com/dzyamik/furry-match3/tree/main/.claude/skills/graphics-and-shapes
Command: npx skills add https://github.com/dzyamik/furry-match3 --skill graphics-and-shapes-dzyamik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers draw and render shapes and graphics in Phaser 4 using the Graphics and Shape APIs, enabling dynamic visuals without textures.

Core Features & Use Cases

  • Provides Graphics and Shape objects to render lines, rectangles, circles, arcs, polygons, gradients, and generated textures.
  • Supports fill and stroke styling, path drawing, and a large set of shape primitives for UI, gameplay indicators, and decorative elements.
  • Use cases include prototyping HUDs, icons, grids, and decorative overlays in Phaser 4 scenes.

Quick Start

Create a Phaser 4 scene that draws a green rectangle and a red circle using Graphics.

Frequently Asked Questions about graphics-and-shapes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I draw shapes in Phaser 4 without using pre-loaded textures?

You can draw shapes in Phaser 4 by using Graphics and Shape objects like this.add.graphics, this.add.rectangle, and this.add.line to render primitives directly in your scene without external image textures. These APIs support fill and stroke styling for dynamic visuals.

Can I generate textures from Phaser 4 Graphics objects for reuse across scenes?

Yes, Phaser 4 Graphics objects support texture generation, enabling you to convert drawn vector shapes into reusable textures for efficient application of generated graphical elements and decorative overlays across multiple scenes.

What is the best way to prototype UI elements and HUDs in Phaser 4?

The best way to prototype UI and HUDs in Phaser 4 is using Graphics and Shape APIs to draw primitives like rectangles and arcs with custom fill and stroke styles, enabling rapid creation of icons, grids, and gameplay indicators.

Does Phaser 4 support drawing gradients and complex polygons with the Graphics API?

Yes, Phaser 4 supports drawing complex polygons and gradients through its Graphics and Shape API, allowing you to utilize primitives alongside fill and stroke styling to create intricate decorative elements and dynamic gameplay overlays.

When should I use Phaser 4 Shape objects instead of pre-rendered image assets?

Use Phaser 4 Shape objects instead of pre-rendered image assets when you need dynamic visuals that adapt at runtime, such as prototyping UI shapes, building grids, or rendering gameplay indicators without loading external texture files.