The color attribute specifies the color of the shape.
<shape>
or
/ color = color nameor
/ color = color valuered 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). |
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.
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>