mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +00:00
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
/*********************************************
|
|
* veraclr.h02 - Color Palette functions for *
|
|
* Commander X16 VERA Chip *
|
|
*********************************************/
|
|
|
|
/* Convert Palette Color Value *
|
|
* to R, G, and B Values *
|
|
* Args: int c - Color Value *
|
|
* Returns: Red Value (0-15) *
|
|
* Green Value (0-15) *
|
|
* Blue Value (0-15) */
|
|
char clrrgb();
|
|
|
|
/* Read Color Value from Palette *
|
|
* Args: char i - Palette Index *
|
|
* Returns: int c - Color Value */
|
|
char getclr();
|
|
|
|
/* Read Color Entries from Palette *
|
|
* Args: i - Index into Palette *
|
|
* n - Number of Entries *
|
|
* Requires: setdst(&array) */
|
|
char getplt();
|
|
|
|
/* Convert R, G, and B Values *
|
|
* to Palette Color Value *
|
|
* Args: r - Red Value (0-15) *
|
|
* g - Green Value (0-15) *
|
|
* b - Blue Value (0-15) *
|
|
* Returns: int c - Color Value */
|
|
char rgbclr();
|
|
|
|
/* Write Color Value to Palette *
|
|
* Args: i - Index into Palette *
|
|
* int c - Color Value *
|
|
* Returns: int d = Entry Address */
|
|
char setclr();
|
|
|
|
/* Set Vera Address to Palette Index *
|
|
* Args: i - Index into Palette *
|
|
* int c - Color Value *
|
|
* Returns: char b = Bank |Auto-Incr *
|
|
* int d = Entry Address */
|
|
char setidx();
|
|
|
|
/* Write Color Entries to Palette *
|
|
* Args: i - Index into Palette *
|
|
* n - Number of Entries *
|
|
* Requires: setsrc(&entries) */
|
|
char setplt();
|
|
|