1.0.0 • Published 7 years ago

color-blocks v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Color Blocks

Create basic images of color patterns.
You can use any color format supported here.
The output of the snippet below can be found here.

# Install with npm
$ npm install --save color-blocks
// This code will generate the image shown below.
// Pass the square size (in pixels), colors, and output location.
import createColorPattern from 'color-blocks';
createColorPattern(50, ['#ff2100', '#00ff7b', '#161dff'], 'output.png').then(() => {});