Function picturesetrgb
#include <macaw.h>void picturesetrgb(int p, int x, int y, int r, int g, int b);
Sets a pixel's true colour, which shows when the screen is in thousands of colours. The pixel's colour number becomes the nearest of the 256.
Parameters
pint- The picture's number.
xint- How far the pixel is from the picture's left edge, in pixels.
yint- How far the pixel is from the picture's top, in pixels.
rint- How much red, from 0 to 255.
gint- How much green, from 0 to 255.
bint- How much blue, from 0 to 255.
In Pictures, with newpicture, loadpicture, freepicture, picturewidth, pictureheight, drawpicture, drawpart, drawinto, drawpictureex, drawpartex, savepicture, parsepicture, decodepicture, decodepicturefile, importpicture, importpicturefile, pictureget, pictureset, picturesize, pictureclear, picturecopy, picturegetrgb.