All RGB Colors Image Generator
Generate a unique 256x128 pixel image containing exactly 32,768 distinct colors (15-bit RGB) with various sorting algorithms.
About
This tool visualizes the complete 15-bit RGB color space by generating a single image where every pixel is a unique color. In a standard 5-5-5 bit depth system, each color channel (Red, Green, Blue) has 32 possible intensity levels (0-31).
By multiplying these possibilities (R × G × B), we get exactly 32,768 unique combinations. We map these colors onto a 256 × 128 pixel canvas. Since 256 × 128 equals 32,768, the canvas has precisely enough room to display every single color exactly once, with no duplicates and no omissions.
Formulas
To convert the internal 5-bit color values (v5) to the standard 8-bit CSS display values (v8), we scale the integer range [0, 31] to [0, 255]:
This ensures that the maximum value of 31 maps perfectly to pure white (255) or pure color.
Reference Data
| Bit Depth | Bits per Channel | Levels per Channel | Total Colors | Formula |
|---|---|---|---|---|
| 8-bit (VGA) | 3-3-2 | 8 / 8 / 4 | 256 | 256=28 |
| 15-bit (High Color) | 5-5-5 | 32 | 32,768 | 25 × 25 × 25 |
| 16-bit (High Color) | 5-6-5 | 32 / 64 / 32 | 65,536 | 216 |
| 24-bit (True Color) | 8-8-8 | 256 | 16,777,216 | 224 |