Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.8K Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

Why Hue[0] == Hue[1] does not evaluate to True or anything?

Posted 7 years ago
POSTED BY: LV VS

Hue[a] (with some number a) does not evaluate internally to an RGB color. (i.e. it stays as Hue[a] in the memory).

Equal will return True/False by checking if the LHS and RHS are equal. In this case they are not; it just looks at this expression structurally if you will… Equal does not compare colors!

If you want to compare colors, you could check the ColorDistance between the two, and check if it is 0. This will compare colors.

POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard