racket / racket/draw

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

Open
#15 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
19
Forks
24
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the two color definitions in racket/draw/private/color.rkt at the referenced entries and compare their RGB values and naming patterns. Check the surrounding definitions and relevant project history to determine whether the difference is intentional or erroneous. Done means establishing the source of the spaced name's values and resolving the discrepancy or documenting its reason.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.