spColor.3p 788 Bytes
.TH spColor 3P local "Silicon Graphics, Inc."
.SH NAME
spColor \- Sets the coloration of the sprite
.SH C SPECIFICATION
.nf
\f3#include <sp.h>

void spColor(Sprite *sp, u8 red, u8 green, u8 blue, u8 alpha)
\fP
.fi
.SH PARAMETERS
.TP 10
.I *sp
pointer to the sprite.
.TP
.I red
Red tint of sprite
.TP
.I green
Green tint of sprite
.TP
.I blue
Blue tint of sprite
.TP
.I alpha
Transparency of sprite
.SH DESCRIPTION
For Textured sprites, this coloration scales each of the textures
color components.  A color of (255,255,255,255) will maintain 100%
of all the original texture's color.  The alpha component can be
used to produce a ghost image or blend between two sprites.  Using
alpha for blending requires that the SP_TRANSPARENT attribute be set.
.SH "SEE ALSO"
.IR spSetAttribute (3P)