hgeSprite::GetColor

Returns color of the specified sprite vertex.

DWORD GetColor(
  int i = 0
);

Parameters

i
Optional index of the sprite vertex. Vertices are indexed clockwise starting from top-left one in the range 0-3. If omitted, color of the first vertex will be returned.

Remarks

Returns color of the specified sprite vertex.

Remarks

The color parameter includes alpha value. See the Hardware color format section for details. The way the color is applied to the sprite depends on the sprite's blending mode. See Blending modes for more information.

Requirements

Header: hgesprite.h
Import library: hgehelp.lib

See also

SetColor, Hardware color format