up Inquisit Language Reference

txColor attribute

The txColor attribute specifies the foreground color in which text is displayed.

Member of

<button> <clock> <defaults> <instruct> <sliderTrial> <survey> <caption> <checkboxes> <dropdown> <image> <listbox> <radioButtons> <slider> <textbox> <surveyPage> <text>

Syntax

/ txColor = colorname

or

/ txColor = hexvalue

or

/ txColor = (red, green, blue)

or

/ txColor = expression

Parameters

Name Type Description
colorname color The name of a built in color.
hexvalue color A hexadecimal value starting with '#' indicating the red, green, and blue values (e.g., #FF0000 for red, #00FF00 for green, or #0000FF for blue)
red color An integer from 0 to 255 specifying the intensity of the red component.
green color An integer from 0 to 255 specifying the intensity of the green component.
blue color An integer from 0 to 255 specifying the intensity of the blue component.
expression value An expression that resolves to a color value.

Remarks

The default color is black.

Examples

The following presents white text on a blue background:

<text myText>
/ items = ("inquisit rocks")
/ txColor = (0, 0, 255)
/ txBGColor = (255, 255, 255)
</text>

The following presents purple text on a black background:

<text myText>
/ items = ("inquisit rocks")
/ txColor = (255, 0, 255)
/ txBGColor = (0, 0, 0)
</text>

Copyright Millisecond Software, LLC. All rights reserved.