Skip to content
This repository has been archived by the owner on Jul 3, 2022. It is now read-only.

Latest commit

 

History

History
16 lines (15 loc) · 467 Bytes

README.md

File metadata and controls

16 lines (15 loc) · 467 Bytes

color.php

include 'path/to/color.php';
$color = new Lawrelie\Color\Color('#000');
echo $color->hexTripet;// '#000000'
echo $color->hsl;// [0, 0, 0]
echo $color->hslString;// 'hsl(0, 0%, 0%)'
echo $color->hsv;// [0, 0, 0]
echo $color->hsvString;// 'hsv(0, 0%, 0%)'
echo $color->rgb;// [0, 0, 0]
echo $color->rgbString;// 'rgb(0, 0, 0)'
echo $color->isDark;// true
echo $color->isLight;// false
echo $color->textColor;// new Lawrelie\Color\Color('#fff');