Macaw OS C reference

Function gpu_colorex

#include <macawgpu.h>
void gpu_colorex(int colour, double bright);

Sets the colour of the next corners, and how bright they are.

Parameters

colourint
A colour number from 0 to 255, like RED.
brightdouble
1 as it is, less for darker (0 is black), up to 1.3 for brighter.

In Drawing a corner at a time, with gpu_begin, gpu_color, gpu_texcoord, gpu_normal, gpu_vertex, gpu_vertex4, gpu_done, gpu_end.