First, I love your R work, your generative artwork, overall it is quite inspiring. Much respect.
I have found a bug. It's simple but important.
In farver.cpp the function compare_dispatch_from() does not include an entry for Hcl. It should be the 13th entry, as with compare_dispatch_to().
As a result, the following example returns the first HCL color, which "should never happen" but unfortunately does:
First, I love your R work, your generative artwork, overall it is quite inspiring. Much respect.
I have found a bug. It's simple but important.
In
farver.cpp
the functioncompare_dispatch_from()
does not include an entry for Hcl. It should be the 13th entry, as withcompare_dispatch_to()
. As a result, the following example returns the first HCL color, which "should never happen" but unfortunately does:Output:
(Expected output is a
numeric
distance.)I have another issue - I will report separately. Thank you!