scratch-quantize
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

scratch-quantize Travis CI Build Status

Quantize a HEX colour to the closest colour that is supported by Scratch.

NPM Badge

Install

npm install scratch-quantize

Usage

const scratchQuantize = require("scratch-quantize");
 
scratchQuantize("#FFD800");
//=> "FFE600"

API

scratchQuantize(input)

input

Type: string

The HEX code to quantize.

Package Sidebar

Install

npm i scratch-quantize

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.17 kB

Total Files

6

Last publish

Collaborators

  • richienb