mirror of
https://github.com/rough-stuff/rough.git
synced 2026-04-22 03:00:28 -04:00
Update README.md
This commit is contained in:
@@ -95,5 +95,17 @@ path.hachureAngle = 90;
|
||||
|
||||
### Dynamic shapes
|
||||
|
||||
``` javascript
|
||||
var rect = rough.rectangle(10,10,20,100);
|
||||
var increaseWidth = function() {
|
||||
if (rect.width < 300) {
|
||||
rect.width = rect.width + 10;
|
||||
setTimeout(increaseWidth, 100);
|
||||
}
|
||||
};
|
||||
setTimeout(increaseWidth, 100);
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user