IrrAnimSpriteSetColor

section index

## NAME

IrrAnimSpriteSetColor - Set the Color

## SYNOPSIS

IrrAnimSpriteSetColor(*animNode.l, alpha.l, r.l, g.l, b.l)

## FUNCTION

Set the Color of the SDprite. This could be very usefull for some Effects. If the Material-Type is #IRR_EMT_TRANMSPARENT_ADD_COLOR, you can use this values (also alsha) to get some coloring/alpha effects.

## INPUTS

*animNode.l | - | a valid pointer to a AnimSpriteSceneNode (created before with IrrAddAnimSprite())
alpha.l,r.l,g.l,b.l | - | Color of the Sprite

## RESULT

nothing

## EXAMPLE

       IrrAnimSpriteSetColor(*animspritenode,128,255,255,255)