File: sdl2ext_colorpalettes.rst

package info (click to toggle)
pysdl2 0.9.7%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,824 kB
  • sloc: python: 17,244; makefile: 195; sh: 32
file content (29 lines) | stat: -rw-r--r-- 1,297 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.. module:: sdl2.ext.colorpalettes
   :synopsis: Predefined sets of colors.

sdl2.ext.colorpalettes - predefined sets of colors
==================================================
Indexed color palettes. Each palette is a tuple of
:class:`sdl2.ext.Color` objects.

The following palettes are currently available:

================== ===================================================
Palette Identifier Description
================== ===================================================
MONOPALETTE        1-bit monochrome palette (black and white).

GRAY2PALETTE       2-bit grayscale palette with black, white and two
                   shades of gray.
GRAY4PALETTE       4-bit grayscale palette with black, white and 14
                   shades shades of gray.
GRAY8PALETTE       8-bit grayscale palette with black, white and 254
                   shades shades of gray.
RGB3PALETTE        3-bit RGB color palette with pure red, green and
                   blue and their complementary colors as well as black
                   and white.
CGAPALETTE         CGA color palette.
EGAPALETTE         EGA color palette.
VGAPALETTE         8-bit VGA color palette.
WEBPALETTE         "Safe" web color palette with 225 colors.
================== ===================================================