1.0.0 • Published 5 years ago
patchwork-pattern v1.0.0
Patchwork Pattern
Install
npm install patchwork-pattern --save
Usage
import PatchworkPattern from 'patchwork-pattern';
class myComponent extends Component {
render() {
const options = { size: 200, steps: 10 };
return (
<img src={PatchworkPattern(options)} alt="" />
);
}
}
Available options
Option | Type | Default |
---|---|---|
size | integer | 500 |
steps | integer | 10 |
palettes | [String] | see source code |
1.0.0
5 years ago