graypegg / chromatism

:rainbow: A simple set of utility functions for colours.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with hexadecimal #000000

Daniel4Digital opened this issue · comments

Hi there,

When I try to do a difference between any color and #000000 it gives NaN and not the actual difference.

The same with FFFFFF. It gives NaN.

difference('#1E1E1E', '#FFFFFF')
difference('#1E1E1E', '#000000')

PR #52 fixes this issue.