🌈 Building a rainbow
davidbos.meΒ·3dΒ·
Discuss: Hacker News
🌈Color Science
Preview
Report Post

Published on 16 January 2026

We are going to generate an image of the human visible color spectrum. Not quite a rainbow, but very colorful either way!

But first: what determines the perceived color of light? That would be cone cells in your eyes, these are cells sensitive to light. A typical human has three different kinds of cone cells, that respond differently based on the wavelength of the light that hits the cell. The combined activation of these cone cells determines the perceived color.

Get human color vision data

The human color vision data we will use is publicly available and was originally published in 1931 (almost 100 years ago!). It is a…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help