color-blocks
v1.0.0
Published
Generate color blocks from hex colors
Readme
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(() => {});