1.0.0 • Published 3 years ago

@dmmdjs/dcolor v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

Last Updated - October 4, 2021 Made by - Dm123321_31mD @dmmdjs README v4