draw
draw copied to clipboard
Why are "cornflowerblue" and "cornflower blue" different colors?
There are several places in racket/draw/private/color.rkt
where two names differ by a space, but are defined as the same color. However, "cornflowerblue"
and "cornflower blue"
seem to break this pattern. Is there a reason why they are different?
Definition of "cornflowerblue"
:
https://github.com/racket/draw/blob/master/draw-lib/racket/draw/private/color.rkt#L143
("cornflowerblue" . #(100 149 237))
Definition of "cornflower blue"
:
https://github.com/racket/draw/blob/master/draw-lib/racket/draw/private/color.rkt#L249
("cornflower blue" . #(68 64 108))
It looks like "cornflowerblue"
without the space has the same RGB values as the X11 cornflower blue on https://en.wikipedia.org/wiki/Cornflower_blue, so where do the RGB values for "cornflower blue"
with the space come from? Is it a mistake or intentional?
The first color 100 149 237 matches https://en.wikipedia.org/wiki/Cornflower_blue
However it seems multiple colors go under "cornflower blue". Open this pages and search for "cornfl" .
That said, I think the 100 149 237 is the "standard" one.
/Jens Axel
Den lør. 19. jan. 2019 kl. 23.27 skrev Alex Knauth <[email protected]
:
There are several places in racket/draw/private/color.rkt where two names differ by a space, but are defined as the same color. However, "cornflowerblue" and "cornflower blue" seem to break this pattern. Is there a reason why they are different?
Definition of "cornflowerblue":
https://github.com/racket/draw/blob/master/draw-lib/racket/draw/private/color.rkt#L143
("cornflowerblue" . #(100 149 237))
Definition of "cornflower blue":
https://github.com/racket/draw/blob/master/draw-lib/racket/draw/private/color.rkt#L249
("cornflower blue" . #(68 64 108))
It looks like "cornflowerblue" without the space has the same RGB values as the X11 cornflower blue on https://en.wikipedia.org/wiki/Cornflower_blue, so where do the RGB values for "cornflower blue" with the space come from? Is it a mistake or intentional?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/racket/draw/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcLxWzb1CUCzLZd3xbpmXYS9WwHWO2bks5vE5vGgaJpZM4aJXS6 .
--
Jens Axel Søgaard
Thanks, I edited to specify that it matches the X11 cornflower blue from that page.
A similar thing happened with "cadetblue"
and "cadet blue"
, although with those the difference between them is much less, only #(95 158 160)
vs. #(96 160 160)
, still within 1% of each other.
The X11 definition of cadet blue seems to use the #(95 158 160)
version.
Per PR 16, it was decided that the differences should be maintained (for some reason). Can someone explain that in a better way, then close this issue? (since I am tempted to just make a PR to standardize to the X11 colors, but that is The Wrong Thing, I don't want others to make the same mistake.)
The reason not to change is that existing programs (eg slides or image generators or web pages etc) might use the colors, and standardizing would change the behavior of those programs and make the results look different and potentially worse.