updated readme

This commit is contained in:
Preet Shihn
2020-01-12 11:19:48 -08:00
parent f5fcbf6e4b
commit 5e5d142e27

View File

@@ -68,7 +68,7 @@ rc.rectangle(120, 105, 80, 80, {
});
```
Fill styles can be: **hachure**(default), **solid**, **zigzag**, **cross-hatch**, **dots**, **sunburst**, **dashed**, or **zigzag-line**
Fill styles can be: **hachure**(default), **solid**, **zigzag**, **cross-hatch**, **dots**, **dashed**, or **zigzag-line**
![Rough.js fill examples](https://roughjs.com/images/main/m14.png)
@@ -97,14 +97,6 @@ SVG Path with simplification:
![Rough.js rectangle](https://roughjs.com/images/main/m9.png) ![Rough.js rectangle](https://roughjs.com/images/main/m10.png)
## Using web workers
RoughJS ships with an async version *rough-async.js*. Also in the [dist folder](https://github.com/pshihn/rough/tree/master/dist) is *worker.js* that can be passed in the config. This will offload all processing to a web worker - freeing up your main UI thread. This is great when creating complex drawings using RoughJs like maps. Read more about it [here](https://github.com/pshihn/rough/wiki/RoughJS-in-a-web-worker).
![Rough.js map](https://roughjs.com/images/main/m6.png)
(source code for this map in examples)
## Examples
[View examples here](https://github.com/pshihn/rough/wiki/Examples)