color-blocks

1.0.0 • Public • Published

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(() => {});

Readme

Keywords

Package Sidebar

Install

npm i color-blocks

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jense5