Parses colour to { h, s, l }, each field being on 0..1 scale.
{ h, s, l }
Note that some colours will return NaN for h,s or l. This is because they have indeterminate hue. For example white, black and transparent. By default hue of 0 is used in these cases.
Parses colour to
{ h, s, l }
, each field being on 0..1 scale.Note that some colours will return NaN for h,s or l. This is because they have indeterminate hue. For example white, black and transparent. By default hue of 0 is used in these cases.