Return the current drawing color.
unsigned char __fastcall__ tgi_getcolor (void);
The actual color is an index to a palette. During tgi_init you will get a default palette. The number of colors depend on the platform. All platforms recognize at least COLOR_BLACK and COLOR_WHITE. But some platforms have many more predefined colors. If you paint using COLOR_GREEN and then you change the green of the palette to blue using tgi_setpalette then after this painting in COLOR_GREEN will actually be blue.
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- See also
Other tgi functions
color = tgi_getcolor();