 |
PicoVGA
1.0-cmake
VGA/TV display on Raspberry Pico
|
Go to the documentation of this file.
16 #define MULTICOL(a,b,c,d) ((a)|((b)<<8)|((c)<<16)|((d)<<24))
67 #define COL_DARKBLUE B0
68 #define COL_SEMIBLUE B1
69 #define COL_BLUE (B0+B1)
70 #define COL_MOREBLUE (COL_BLUE+B3+B6)
71 #define COL_LIGHTBLUE (COL_BLUE+B4+B7)
73 #define COL_DARKGREEN B3
74 #define COL_SEMIGREEN B4
75 #define COL_GREEN (B2+B3+B4)
76 #define COL_MOREGREEN (COL_GREEN+B0+B6)
77 #define COL_LIGHTGREEN (COL_GREEN+B1+B7)
79 #define COL_DARKRED B6
80 #define COL_SEMIRED B7
81 #define COL_RED (B5+B6+B7)
82 #define COL_MORERED (COL_RED+B0+B3)
83 #define COL_LIGHTRED (COL_RED+B1+B4)
85 #define COL_DARKCYAN (B0+B3)
86 #define COL_SEMICYAN (B1+B4)
87 #define COL_CYAN (B0+B1+B2+B3+B4)
89 #define COL_DARKMAGENTA (B0+B6)
90 #define COL_SEMIMAGENTA (B1+B7)
91 #define COL_MAGENTA (B0+B1+B5+B6+B7)
93 #define COL_DARKYELLOW (B3+B6)
94 #define COL_SEMIYELLOW (B4+B7)
95 #define COL_YELLOW (B2+B3+B4+B5+B6+B7)
98 #define COL_GRAY1 (B2+B5)
99 #define COL_GRAY2 (B0+B3+B6)
100 #define COL_GRAY3 (B0+B2+B3+B5+B6)
101 #define COL_GRAY4 (B1+B4+B7)
102 #define COL_GRAY5 (B1+B2+B4+B5+B7)
103 #define COL_GRAY6 (B0+B1+B3+B4+B6+B7)
104 #define COL_GRAY7 (B0+B1+B2+B3+B4+B5+B6+B7)
106 #define COL_WHITE COL_GRAY7
109 #define COLRGB(r,g,b) ((u8)(((r)&0xe0)|(((g)&0xe0)>>3)|((b)>>6)))
u8 PalCGA6[4]
4-color CGA palette 1, high intensity (black, light cyan, light red, white)
Definition: vga_pal.cpp:61
u8 PalCGA2[4]
4-color CGA palette 0, high intensity (black, light green, light red, yellow)
Definition: vga_pal.cpp:57
int ColDist(u8 col1, u8 col2)
Distance of 2 colors in 332 format (R3G3B2)
Definition: vga_pal.cpp:77
u8 PalCGA3[4]
4-color CGA palette 1, low intensity (black, dark cyan, dark magenta, light gray)
Definition: vga_pal.cpp:58
void GenGrad(u8 *dst, int w)
Generate gradient.
Definition: vga_pal.cpp:119
u8 PalCGA5[4]
4-color CGA palette 1, low intensity (black, dark cyan, dark red, light gray)
Definition: vga_pal.cpp:60
u8 BVal[4]
Values of Blue components.
Definition: vga_pal.cpp:73
u8 RGVal[8]
Values of Red and Green components.
Definition: vga_pal.cpp:72
u8 DefPal16[16]
default 16-color palettes (CGA colors)
Definition: vga_pal.cpp:13
u8 PalCGA4[4]
4-color CGA palette 1, high intensity (black, light cyan, light magenta, white)
Definition: vga_pal.cpp:59
u8 PalCGA1[4]
4-color CGA palette 0, low intensity (black, dark green, brown)
Definition: vga_pal.cpp:56
u8 ZXPal16[16]
ZX Spectrum color palettes.
Definition: vga_pal.cpp:35