Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sebastian-meier/d3.sketchy

A tool to create sketchy backgrounds, shapes and lines
https://github.com/sebastian-meier/d3.sketchy

Last synced: about 1 month ago
JSON representation

A tool to create sketchy backgrounds, shapes and lines

Awesome Lists containing this project

README

        

# d3.sketchy
A tool to create sketchy backgrounds, shapes and lines

![Sketchy Rectangles](https://raw.githubusercontent.com/sebastian-meier/d3.sketchy/master/img/1_rect.png)

The library was inspired by [Handy](http://www.gicentre.net/handy) by [Jo Wood](http://www.gicentre.net/jwo/index/) et al.
The circle strokes use code from http://codepen.io/spencerthayer/pen/nhjwu by [Spencer Thayer](https://github.com/spencerthayer)

The library can draw [rectangles](http://prjcts.sebastianmeier.eu/sketch/examples/index_1.html) and [circles](http://prjcts.sebastianmeier.eu/sketch/examples/index_2.html)

![Sketchy Circle](https://raw.githubusercontent.com/sebastian-meier/d3.sketchy/master/img/2_circle.png)

Custom [shapes](http://prjcts.sebastianmeier.eu/sketch/examples/index_3.html) defined by an array of points.

![Sketchy Shape](https://raw.githubusercontent.com/sebastian-meier/d3.sketchy/master/img/3_1_shape.png)

Which can be drawn automatically or with [custom path functions](http://prjcts.sebastianmeier.eu/sketch/examples/index_4.html)

![Sketchy Shape](https://raw.githubusercontent.com/sebastian-meier/d3.sketchy/master/img/3_2_shape.png)

And of course outlines for [rectangles](http://prjcts.sebastianmeier.eu/sketch/examples/index_5.html)

![Sketchy Rectangle Stroke](https://raw.githubusercontent.com/sebastian-meier/d3.sketchy/master/img/4_rect_stroke.png)

and [circles](http://prjcts.sebastianmeier.eu/sketch/examples/index_6.html)

![Sketchy Circle Stroke](https://raw.githubusercontent.com/sebastian-meier/d3.sketchy/master/img/5_circle_stroke.png)

The density, angle and sketchiness can be customized through parameters and the thickness of the lines through css.

Here is an [interactive customizer](http://prjcts.sebastianmeier.eu/sketch/examples/index_2.html) that lets you play around with the parameters.

For in-depth documentation take a look at the docs, there are also various examples.