Update README.md

This commit is contained in:
Preet
2017-01-13 00:27:53 -08:00
committed by GitHub
parent 0926535351
commit 6467b96fc0

View File

@@ -98,8 +98,8 @@ path.hachureAngle = 90;
``` javascript
var rect = rough.rectangle(10,10,20,100);
var increaseWidth = function() {
if (rect.width < 300) {
rect.width = rect.width + 10;
if (rect.width < 300) {
rect.width = rect.width + 10;
setTimeout(increaseWidth, 100);
}
};