graphics-and-shapes

Create geometric shapes and graphics in Phaser 4 environments.

3|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/Autinhorse/levelcraft --skill graphics-and-shapes-autinhorse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphics-and-shapes
Source: https://github.com/Autinhorse/levelcraft/tree/main/games/docs/phaser-skills/graphics-and-shapes
Command: npx skills add https://github.com/Autinhorse/levelcraft --skill graphics-and-shapes-autinhorse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables users to draw various shapes and graphics programmatically, simplifying the creation of visual elements for games or interactive applications.

Core Features & Use Cases

  • Drawing Primitives: Render rectangles, circles, triangles, lines, and polygons with customizable styles.
  • Shape Customization: Adjust fill colors, stroke styles, and corner radii, including advanced features like gradients and path drawing.
  • Use Case: Design game interfaces or visualizations by dynamically generating shapes and graphics with specific styles and behaviors.

Quick Start

Draw a filled rectangle and a stroked circle in Phaser 4 by creating graphics objects and calling the drawing methods directly.

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 geometric shapes and graphics in Phaser 4?

You can draw graphics in Phaser 4 by creating graphics objects and calling drawing methods directly to render primitives like rectangles, circles, and polygons with customizable fill colors, stroke styles, and corner radii.

Can I customize fill colors and stroke styles for game UI shapes?

Yes, you can customize game UI shapes by adjusting fill colors, stroke styles, and corner radii, while also utilizing advanced graphics features like gradients and path drawing for interactive visual content.

Does this Phaser graphics approach support both WebGL and Canvas rendering?

Yes, dynamic graphics creation utilizes both WebGL and Canvas rendering, ensuring flexibility and performance across diverse graphical needs when building interactive visual content in game environments.

What types of primitive shapes can I render for game visual effects?

You can render primitive shapes including rectangles, circles, triangles, lines, and polygons, drawn programmatically to design game interfaces or visualizations with specific styles and behaviors.

Is programmatic drawing suitable for visualizations and interactive applications?

Programmatic drawing is suitable for visualizations and interactive applications because it simplifies the dynamic creation of visual elements, catering specifically to developers building interactive visual content and game interfaces.