Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

writeRGB(3)  —  Unix Programmer’s Manual

NAME

writeRGB - paint a row of pixels on the screen

SYNOPSIS

C
writeRGB(n, red, green, blue)
short n;
RGBvalue red[], green[], blue[];

FORTRAN
subroutine writeR(n, red, green, blue)
integer∗2 n, red(n), green(n), blue(n)

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 next pixel position is outside the viewport.  Pixels are painted from left to right, and are clipped to the current screen mask.  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, writepixels

NOTE

This command can only be used in immediate mode. 

Silicon Graphics  —  R1c

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026