Rainbows! Color Theory for Computers
summary
Builds a smoothed simulation of fluids using smoothed-particle hydrodynamics and maps each particle’s pressure to visual brightness via the Ruby graphics Gem (installable with --pre) so the code actually runs on the GPU. Explains why simple RGB gradients mislead (Helmholtz-Kohlrausch effect, opponent-process ideas) and implements Dave Green’s cube helix spiral to produce a perceptually consistent dark‑to‑light colormap. The demo is implemented in the library and it works.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:03Smooth Particle Hydrodynamics
- 2:11Pressure Map
- 5:25Color Spectrum
- 8:50The Opponent Process
- 10:40Color Space
- 13:36Color Information








