Skip to content

Commit cf531be

Browse files
committed
merge from master
2 parents 203a08a + 9be60b1 commit cf531be

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ npm install --save roughjs
2121

2222
```js
2323
const rc = rough.canvas(document.getElementById('canvas'));
24-
rough.rectangle(10, 10, 200, 200); // x, y, width, height
24+
rc.rectangle(10, 10, 200, 200); // x, y, width, height
2525
```
2626

2727
### Lines and Ellipses
@@ -102,5 +102,11 @@ If you have [Workly](https://github.com/pshihn/workly) imported on your web page
102102

103103
[Full Rough.js API](https://github.com/pshihn/rough/wiki)
104104

105+
## Credits
106+
107+
Some of the core algorithms were adapted from [handy](https://www.gicentre.net/software/#/handy/) processing lib.
108+
109+
Algorithm to convert SVG arcs to Canvas [described here](https://www.w3.org/TR/SVG/implnote.html) was adapted from [Mozilla codebase](https://hg.mozilla.org/mozilla-central/file/17156fbebbc8/content/svg/content/src/nsSVGPathDataParser.cpp#l887)
110+
105111
## License
106-
[MIT License](https://github.com/pshihn/rough/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster)
112+
[MIT License](https://github.com/pshihn/rough/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster)

docs/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ npm install --save roughjs
2121

2222
```js
2323
const rc = rough.canvas(document.getElementById('canvas'));
24-
rough.rectangle(10, 10, 200, 200); // x, y, width, height
24+
rc.rectangle(10, 10, 200, 200); // x, y, width, height
2525
```
2626

2727
### Lines and Ellipses
@@ -102,5 +102,11 @@ If you have [Workly](https://github.com/pshihn/workly) imported on your web page
102102

103103
[Full Rough.js API](https://github.com/pshihn/rough/wiki)
104104

105+
## Credits
106+
107+
Some of the core algorithms were adapted from [handy](https://www.gicentre.net/software/#/handy/) processing lib.
108+
109+
Algorithm to convert SVG arcs to Canvas [described here](https://www.w3.org/TR/SVG/implnote.html) was adapted from [Mozilla codebase](https://hg.mozilla.org/mozilla-central/file/17156fbebbc8/content/svg/content/src/nsSVGPathDataParser.cpp#l887)
110+
105111
## License
106-
[MIT License](https://github.com/pshihn/rough/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster)
112+
[MIT License](https://github.com/pshihn/rough/blob/master/LICENSE) (c) [Preet Shihn](https://twitter.com/preetster)

0 commit comments

Comments
 (0)