draw icon indicating copy to clipboard operation
draw copied to clipboard

Why are "cornflowerblue" and "cornflower blue" different colors?

Open AlexKnauth opened this issue 6 years ago • 5 comments

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))

#6495ed

Definition of "cornflower blue": https://github.com/racket/draw/blob/master/draw-lib/racket/draw/private/color.rkt#L249

 ("cornflower blue" . #(68 64 108))

#44406c

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?

AlexKnauth avatar Jan 19 '19 22:01 AlexKnauth

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))

[image: #6495ed] https://camo.githubusercontent.com/f1dc7d79c61ad0492b2eb7fa11ef3504b509b243/68747470733a2f2f706c616365686f6c642e69742f31352f3634393565642f3030303030303f746578743d2b

Definition of "cornflower blue":

https://github.com/racket/draw/blob/master/draw-lib/racket/draw/private/color.rkt#L249

("cornflower blue" . #(68 64 108))

[image: #44406c] https://camo.githubusercontent.com/64c6d5b5256578df0765e402008496ef056dcfd0/68747470733a2f2f706c616365686f6c642e69742f31352f3434343036632f3030303030303f746578743d2b

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

soegaard avatar Jan 19 '19 22:01 soegaard

Thanks, I edited to specify that it matches the X11 cornflower blue from that page.

AlexKnauth avatar Jan 19 '19 22:01 AlexKnauth

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.

AlexKnauth avatar Jan 19 '19 23:01 AlexKnauth

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.)

fjsweeney avatar Sep 27 '23 21:09 fjsweeney

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.

samth avatar Sep 27 '23 21:09 samth