blink(3G) blink(3G)
NAME
blink - changes a color map entry at a selectable rate
SPECIFICATION
C blink(rate, i, red, green, blue)
short rate, red, green, blue;
Colorindex i;
short red, green, blue
FORTRAN subroutine blink(rate, i, red, green, blue)
integer*4 rate, i, red, green, blue
DESCRIPTION
blink specifies blink rate, color map index, and red, green,
and blue values. rate is measured in terms of vertical
retraces. The system updates the color located at index i
in the current color map according to rate. For example, if
rate is 3, the color changes (blinks) every third vertical
retrace. Its value alternates between the original value
and the new value supplied by red, green, and blue. The
length of time between retraces varies according to the
monitor used. On the standard 60Hz monitor, there are 60
retraces per second. When using this monitor, a rate of 60
would cause the color to change once every second.
Up to 20 colors can blink simultaneously, each at a
different rate. You can change the blink rate by calling
blink with the same i and a different rate. To terminate
blinking and restore the original color when i specifies a
blinking colormap entry, call blink with rate = 0. To
terminate all blinking colors simultaneously, call blink
with rate=-1. When you set rate to -1, the other parameters
are ignored.
SEE ALSO
mapcolor, color
Programming Guide, Section 6.2, Color Map Mode
NOTE
This routine available only in immediate mode.
Page 1 (printed 8/20/87)