up Inquisit Language Reference

color attribute

The color attribute specifies the color of the shape.

Member of

<button> <shape> <text>

Syntax

/ color = colorname

or

/ color = hexvalue

or

/ color = (red, green, blue)

or

/ color = 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

All colors in Inquisit are specified as a blend of red, green, and blue components. The intensity of each component can be varied to form a wide variety of color shades (16,581,375 to be exact). The default color is white.

Examples

The following defines a blue square:

<shape bluesquare>
/ shape = rectangle
/ size = (100, 100)
/ color = (0, 0, 255)
</shape>

The following defines a grey circle:

<shape greycircle>
/ shape = circle
/ color = (100, 100, 100)
</shape>

The following defines a purple triangle:

<shape purpletriangle>
/ shape = triangle
/ color = (255, 0, 255)
</shape>

Copyright Millisecond Software, LLC. All rights reserved.