Contents

color

The sprite’s color.

Declaration

var color: UIColor { get set }
var color: NSColor { get set }

Mentioned in

Discussion

If the texture property is non-nil, the red, green, and blue values of the color property are blended with the texture before the texture is drawn and the alpha property is ignored. If the texture property is nil, the color (including the alpha component) is used to draw a single-color rectangle.

See Also

Tinting a Sprite