Lingo Dictionary > A-C > color (sprite property) |  |

color (sprite property)

Syntax

    sprite(whichSpriteNumber).color
    the color of sprite whichSpriteNumber

Description

Sprite property; determines the foreground color of the sprite specified by `whichSprite`. Setting the `foreColor` sprite property is equivalent to choosing the foreground color from the Tools window when the sprite is selected on the Stage.

This property has the equivalent functionality of the `foreColor` sprite property, but the color value returned is a color object of whatever type has been set for that sprite.

This property can be tested and set.

See also

`color()`, `bgColor`, `foreColor`