π©βπ¨ Draw a harmonograph with a URL
The URL will return an SVG of a randomised harmonograph with a #000 stroke color, 1px stroke width and a size of 700px:
The URL follows this pattern:
api.harmonograph.art/strokeColor/backgroundColor/strokeWidth/size/animationDuration/
| Option | Description | Default value | Type |
|---|---|---|---|
| strokeColor | The color of the line | #000 |
string |
| backgroundColor | The background color of the svg | transparent |
string |
| strokeWidth | The width of the line | 1 |
number |
| size | The size of the svg | 700 |
number |
| animationDuration | Seconds it takes to draw harmonograph | 30 |
string |
https://api.harmonograph.art/3dfcb3/1C65F8/0.5/400/60
To get started locally make sure you have node and npm installed:
npm install && npm run dev
Then you can open https://localhost:3000/ to see the API running locally.
- v0.0.0 - π₯ Initial release