1.0.0 • Published 4 years ago
scratch-quantize v1.0.0
scratch-quantize
Quantize a HEX colour to the closest colour that is supported by Scratch.
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.
1.0.0
4 years ago