User Tools

Site Tools


crpl:docs:setimagecolor

<- CRPL reference <- Image Commands

SetImageColor

ArgumentsResultNotation
A unit UID, image slot, red, green, blue, alpha i1 s1 i2 i3 i4 i5 –

Description

Sets the color of the light shining on the sprite. Red, Green, Blue, and alpha values are in the range of 0-255. Alpha represents transparency with 0 being fully transparent and 255 being fully opaque. The slot named “main” refers to the primary unit image (the one that can be set in the editor).

Examples

# Make the image be viewed under a red light 
Self "FlyingThing" 255 0 0 255 SetImageColor
crpl/docs/setimagecolor.txt · Last modified: 2021/02/05 11:43 by Karsten75