csb-hex
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i csb-hex

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

3.11 kB

Total Files

6

Last publish

Collaborators

  • richienb