/*****************************************************************************/
-/* Constants */
+/* Constants */
/*****************************************************************************/
+/*****************************************************************************/
+/* Data */
+/*****************************************************************************/
+
+
+
+struct palettetype {
+ unsigned char r; /* Red component */
+ unsigned char g; /* Green component */
+ unsigned char b; /* Blue component */
+};
+
+
+
/*****************************************************************************/
/* Functions */
/*****************************************************************************/
unsigned char getcolor (void);
/* Return the current drawing color */
+unsigned char getbkcolor (void);
+/* Return the current background color */
+
+void __fastcall__ setbkcolor (unsigned char color);
+/* Set the background color */
+
+void __fastcall__ setpalette (unsigned num, const struct palettetype* palette);
+/* Set one palette entry */
+
+void __fastcall__ getpalette (unsigned num, struct palettetype* palette);
+/* Get one palette entry */
+
+void __fastcall__ setallpalette (const struct palettetype* allpalette);
+/* Set all palette entries */
+
unsigned char __fastcall__ getpixel (int x, int y);
/* Get the color value of a pixel */