Macaw OS C reference

Function drawpal

#include <macaw.h>
void drawpal(int from, int to);

From now on, anything you draw in one colour is drawn in another instead. Use it to flash a sprite white when it's hit, for example.

Parameters

fromint
The colour to swap, from 0 to 255.
toint
The colour to draw instead, from 0 to 255.

In Colours, with pal, palreset, drawpalreset, nearestcolor.