0.3.4 • Published 4 years ago
hexota v0.3.4
Installation
npm i hexota
Usage
const { Colour } = require("hexota")
Documents
Our documents can be found here.
Roadmap
I use a website called "trello", the link to it can be found here
Examples
const colour = new Colour();
colour.setHex("#fffff")
colour.convert("rgb")
//Output: [255, 255, 255]
const colour = new Colour();
colour.setRGB(60, 50, 20)
colour.setRed(20)
colour.convert("hex")
//Output: "#143214"
const colour = new Colour();
colour.setHex(#4D4D4D)
console.log(colour.displayImage(400, 400)) //Output: "http://www.singlecolorimage.com/get/4d4d4d/400x400"