Update README.md

This commit is contained in:
Preet
2017-01-13 00:27:08 -08:00
committed by GitHub
parent 335944dcaa
commit 0926535351

View File

@@ -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