@pixi/graphics-extras
Adds the follow methods to Graphics:
drawTorusdrawChamferRectdrawFilletRectdrawRegularPolygon
Installation
npm install @pixi/graphics-extras
Usage
import { Graphics } from '@pixi/graphics';
import '@pixi/graphics-extras';
const shapes = new Graphics()
.beginFill(0xffffff)
.drawTorus(0, 0, 20, 100);