https://github.com/imcuttle/drawflower
drawflowers by js
https://github.com/imcuttle/drawflower
Last synced: 4 months ago
JSON representation
drawflowers by js
- Host: GitHub
- URL: https://github.com/imcuttle/drawflower
- Owner: imcuttle
- Created: 2016-04-26T08:02:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-26T10:28:32.000Z (about 10 years ago)
- Last Synced: 2025-07-26T02:53:03.938Z (11 months ago)
- Language: HTML
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DrawFlower
[Demo](http://moyuyc.github.io/2016/04/26/canvas绘制平面花瓣/)
How To Play?
1.``
2.`canvas.drawFlower(option);`
```
//default option
{
animate:false,
rotate:90,
randomSize:true,
randomColor:true,
randomPetals: true,
pos:{
x:this.width/2,
y:this.height/2
}
}
```
or
```
{
animate:true,
rotate:-20,
randomSize:false,
size:10,
randomColor:false,
color:[100,100,100],
randomPetals: false,
petals:6,
pos:{
x:0,
y:0
}
}
```