Macaw OS C reference

Function pal

#include <macaw.h>
void pal(int colour, int r, int g, int b);

Changes what one colour number looks like, everywhere on the screen, until you put it back with palreset.

Parameters

colourint
The colour number to change, from 0 to 255.
rint
How much red it has, from 0 to 255.
gint
How much green it has, from 0 to 255.
bint
How much blue it has, from 0 to 255.

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