jasonsturges / pixi-drawing-shapes

Drawing shapes with Pixi.js

Home Page:https://jasonsturges.com/pixi-drawing-shapes/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pixi.js Drawing Shapes

Drawing shapes with Pixi.js using drawing function and @pixi/graphics-extras package.

pixi-drawing-shapes

Live demo: https://jasonsturges.com/pixi-drawing-shapes/

Drawing Functions

Shape Package
Arc Example drawing function
Burst Example drawing function
Chamfer Rectangle Pixi graphics-extras drawing function
Dash Example drawing function
Fillet Rectangle Pixi graphics-extras drawing function
Gear Example drawing function
Polygon Example drawing function
Regular Polygon Pixi graphics-extras drawing function
Rounded Polygon Pixi graphics-extras drawing function
Rounded Rectangle Pixi graphics-extras drawing function
Star Example drawing function
Star Pixi graphics-extras drawing function
Torus Pixi graphics-extras drawing function
Wedge Example drawing function

Getting Started

Install dependencies: npm i

To run a local development server:

  • npm run dev — Live reload using Vite
  • npm run preview — Preview build artifact (requires a build)

About

Drawing shapes with Pixi.js

https://jasonsturges.com/pixi-drawing-shapes/


Languages

Language:TypeScript 98.6%Language:HTML 1.3%Language:CSS 0.2%