1.0.0 • Published 4 years ago

csb-hex v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

csb-hex Travis CI Build Status

Convert a Scratch CSB colour to HEX.

NPM Badge

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
1.0.0

4 years ago