1.0.0 • Published 3 years ago
@dmmdjs/dcolor v1.0.0
Dcolor
About
Dcolor is a powerful color-handling tool that allows you to convert, mix, and transpose colors.
This package is made possible by:
- iiPython: - Bug finding & supporting
Basics
Installation
To install this package to your project, please ensure that you have Node.js correctly installed.
Recommended:
Import
You can import dcolor to this package by typing the following.
CJS:
const dcolor = require("@dmmdjs/dcolor");
ES6:
import dcolor from "@dmmdjs/dcolor";
Examples
Example #1:
function hex2RGB(hex) {
return dcolor.convert("hex", "rgb", hex);
};
console.log(hex2RGB("#FFFF00")); // [ 255, 255, 0 ];
console.log(hex2RGB("FF00FF")); // [ 255, 0, 255 ];
Contact
- Discord Username:
DmmD - Dm123321_31mD Gaming#9423
- Discord Server: https://discord.gg/f3TdGwMMrt
- Email:
dm12332131mdgaming@gmail.com
- Github: https://github.com/dmmdjs
Last Updated - October 4, 2021
Made by - Dm123321_31mD
@dmmdjs README v4
1.0.0
3 years ago