New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

color-blocks

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-blocks

Generate color blocks from hex colors

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

color-blocks

FAQs

Package last updated on 06 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts