sdl2.ext.colorpalettes - Predefined Color Palettes
This module defines a number of common color palettes.
Each palette is a tuple of Color
objects. The following
palettes are currently available:
Palette |
Description |
---|---|
|
1-bit monochrome palette (black and white). |
|
2-bit grayscale palette with black, white and two shades of gray. |
|
4-bit grayscale palette with black, white and 14 shades shades of gray. |
|
8-bit grayscale palette with black, white and 254 shades shades of gray. |
|
3-bit RGB color palette with pure red, green and blue and their complementary colors as well as black and white. |
|
CGA color palette. |
|
EGA color palette. |
|
8-bit VGA color palette. |
|
“Safe” web color palette with 225 colors. |