1.0.1 • Published 3 years ago
react-p5-components v1.0.1
react-p5-components
:art: use p5.js in react without writing p5's code
Install
npm i react-p5-components
Components
GenerateLettersByDragCanvas
Code
import GenerateLettersByDragCanvas from "react-p5-components";
<GenerateLettersByDragCanvas
letters={"example letters"}
height={500}
width={500}
font={"Georgia"}
fontColor={"#000000"}
fontSizeMin={10}
backgroundColor={"#CCCCCC"}
/>
Demo
Props
*All Props is Required.
Name | Type | Description |
---|---|---|
letters | string | generate this letters |
height | number | canvas height |
width | number | canvas width |
font | string | font-family |
fontColor | string | font color |
fontSizeMin | number | minimum size of letter |
backgroundColor | string | canvas background color |