up Inquisit Language Reference

color attribute

The color attribute specifies the color of the shape.

Member of

<shape>

Syntax

/ color = (red value, green value, blue value)

or

/ color = color name

or

/ color = color value

Parameters

red value An integer from 0 to 255 specifying the intensity of the red component.
green value An integer from 0 to 255 specifying the intensity of the green component.
blue value An integer from 0 to 255 specifying the intensity of the blue component.
color name The name of a built in color.
color value A 32-bit argb value specified as in integer or a CSS hex value (e.g., #0000FF or #00F for blue).

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>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.