writeRGB() — Silicon Graphics Beta Release
NAME
writeRGB - paints a row of pixels on the screen
SPECIFICATION
C
writeRGB(n, red, green, blue)
short n;
RGBvalue red[], green[], blue[];
FORTRAN
subroutine writeR(n, red, green, blue)
integer*4 n
character*(*) red, green, blue
Pascal
procedure writeRGB(n: Short; var red, green, blue: RGBarray);
DESCRIPTION
writeRGB paints a row of pixels on the screen in RGB mode. It specifies the number of pixels to paint and a color for each pixel. The current character position provides the starting location; it is updated to point to the pixel following the last one painted. The current character position becomes undefined if the updated pixel position is greater than XMAXSCREEN. Pixels are painted from left to right, and are clipped to the current screenmask. writeRGB does not automatically wrap from one line to the next. It supplies a 24-bit RGB value (eight bits for each color) for each pixel. This value is written directly into the bitplanes.
SEE ALSO
scrmask, readRGB, RGBcolor, RGBwritemask, writepixels
NOTE
This command can be used only in immediate mode and RGB mode.
Version 2.3 — July 04, 1985