hp
toc

RGB Color Cube

2016-03-19, post № 109

programming, Pygame, Python, #16777216, #256**3, #all rgb, #blue, #colors, #every rgb color, #green, #red

Listing the red part on the 𝑥-axis, the green part on the 𝑦-axis and the blue part on the 𝑧-axis, this program displays all the 𝟣𝟨𝟩𝟩𝟩𝟤𝟣𝟨 [1] colors rgb can display.
The 𝑧-axis is shown over time, visually going through a cube of colors.

rgb-color-cube-0.png
rgb-color-cube-1.png
rgb-color-cube-2.png
Source code: rgb-color-cube.py

Footnotes

  1. 𝟢 to 𝟤𝟧𝟧 color values for all three colors in rgb yields to 256^3=16777216 different colors.
Jonathan Frech's blog; built 2024/12/19 23:13:08 CET