Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.
/ ColorTypeConverter Public archive

Color Type Converter class in js convert Hex To RGB, Hex to HSL, RGB to HSL

Notifications You must be signed in to change notification settings

alexdin/ColorTypeConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a small class for translating basic types of colors.

RGB to HSL

var colorObj = new colorConvert();
var hls = colorObj.RgbToHsl('rgb(61, 249, 51)');
console.log(hls);

Hex to HSL

var colorObj = new colorConvert();
var hls = colorObj.HexToHsl('#3df933');
console.log(hls);

Hex to RGB

var colorObj = new colorConvert();
var rgb = colorObj.HexToRgb('rgb(61, 249, 51)');
console.log(rgb);

Contacts [email protected] skype alex-din

About

Color Type Converter class in js convert Hex To RGB, Hex to HSL, RGB to HSL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published