Additional Graphics functions for drawing special shapes.
npm install @pixi/graphics-extrasAdds the follow methods to Graphics:
* drawTorus
* drawChamferRect
* drawFilletRect
* drawRegularPolygon
``bash`
npm install @pixi/graphics-extras
`js
import { Graphics } from '@pixi/graphics';
import '@pixi/graphics-extras';
const shapes = new Graphics()
.beginFill(0xffffff)
.drawTorus(0, 0, 20, 100);
`
Via jsDelivr:
`html`
Or via unpkg:
`html``