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

1.0.0 • Public • Published

hex-csb Travis CI Build Status

Convert a HEX colour to Scratch CSB.

NPM Badge

Install

npm install hex-csb

Usage

const hexCsb = require("hex-csb");
 
hexCsb("FFFFFF");
//=> [0, 0, 100]
 
hexCsb("000000");
//=> [0, 0, 0]
 
hexCsb("#FFD800");
//=> [14, 100, 100]

API

hexCsb(input)

input

Type: string

The HEX code to convert.

/hex-csb/

    Package Sidebar

    Install

    npm i hex-csb

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.96 kB

    Total Files

    6

    Last publish

    Collaborators

    • richienb