Qix-/color

Is there an easy way to judge whether two color variables are equal #165

lianmin posted onGitHub

just like this:

const color1 = 'rgb(255, 255,255)';
const color2 = '#FFF'

Color.isSame(color1, color2); // true

color1.rgbNumber() === color2.rgbNumber()
posted by Qix- over 5 years ago

Thx

posted by lianmin over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests