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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0
  • 0.2.0
    1
  • 0.1.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i color-blocks

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jense5