User Tools

Site Tools


crpl:docs:getimagecolor

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Image Commands

GetImageColor

ArgumentsResultNotation
A unit UID, image slot i1 s1 – i2 i3 i4 i5

Description

Gets the color of the light shining on the sprite. Red, Green, Blue, and alpha values are in the range of 0-255. All four values are pushed the to stack with alpha being at the top of the stack.

Examples

Self "FlyingThing" GetImageColor trace4
crpl/docs/getimagecolor.1412190170.txt.gz · Last modified: 2025/02/14 14:56 (external edit)