User Tools

Site Tools


jvs:cigal:showplay:manual:chapter4:forecolor

ShowPlay Reference Manual, Chapter 4 (StimulusEvents): forecolor

Forecolor -- Change the default graphics color

usage: forecolor id flg start color

The FORECOLOR stimulus event lets you change the screen graphics drawing color parameter (front_color) during your Showplay real-time program. The syntax for the FORECOLOR event is:

 forecolor          stim_id   stim_flg     start_time   colorRGBvalue

COLORRGBVALUE is a 24-bit color value, specifying red, green, blue values in 8-bits each. These color values must be entered as decimal integer values in the stimulus table. A table of some common color values is:

 RGBdecimal     RGBhex          Color
         0          0h          Black
  16777215    0ffffffh          White
       255        0ffh          Blue
     65280      0ff00h          Green
  16711680    0ff0000h          Red

RGB values can be entered as hexidecimal numbers on CIGAL command lines, which can be useful for converting 24 bit colors to decimal values.

Note: The FORECOLOR event does not change the display – it just changes that front_color parameter. The display will change the next time you draw grahics on the screen.

See Also:
Paradigm parameter file, Stimulus table

CIGAL Home, CIGAL Manual, ShowPlay Home, ShowPlay Manual, Stimulus Event List, Manual Help

jvs/cigal/showplay/manual/chapter4/forecolor.txt · Last modified: 2023/02/23 18:43 (external edit)