RGB Spheres

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

There are RGB colors. They can be considered as coordinates from to , with off-grid center point . There are different distances to that center point that give color points.


This Demonstration shows the colored spheres and non-colored spheres, sorted by increasing radius. Each point is placed at its corresponding coordinate point.

The color cube has diameter 255. Spheres with points beyond 255 get smaller black points. The faces and corners of the cube often show symmetry. When multiple points are on the same plane, they appear in circular arrays on the sphere.

Each radius is the sum of squares of three integers, a sum that always has form . The smallest sphere with no color occurs at radius . All of the power representations have a maximal value greater than 255. These representations are shown to the left and right on the graphic, sorted by maximal value.


Contributed by: Ed Pegg Jr (September 2017)
Open content licensed under CC BY-NC-SA



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.