csb-hex
Convert a Scratch CSB colour to HEX.
Install
npm install csb-hex
Usage
const csbHex = require("csb-hex");
csbHex([0, 0, 100]);
//=> "FFFFFF"
csbHex([0, 0, 0]);
//=> "000000"
csbHex([14, 100, 100]);
//=> "FFD500"
API
csbHex(input)
input
Type: array of 3 numbers
The CSB to convert.
Related
- hex-csb - Convert a HEX colour to Scratch CSB