pixi-react-shapes
v1.0.0
Published
basic shapes for @pixi/react
Downloads
2
Readme
Pixi React Shapes
A collection of basic shapes for @pixi/react
Example
Go to website
directory for a working example
Usage
Import the shapes you want to use and pass the draw props to the shape.
import { Circle, Rectangle, RoundedRectangle } from 'pixi-react-shapes';
<>
<Circle drawCircle={[0, 0, 50]} />
<Rectangle drawRect={[-50, -50, 100, 100]} />
<RoundedRectangle draw={[-50, -50, 100, 100, 10]} />
</>