This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:setimagecolor [2013/01/14 19:11] – external edit 127.0.0.1 | crpl:docs:setimagecolor [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <- [[crpl: | ||
===== SetImageColor | ===== SetImageColor | ||
^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
- | |A unit UID, image slot, red, green, blue| |'' | + | |A unit UID, image slot, red, green, blue, alpha| |'' |
=== Description === | === Description === | ||
Sets the color of the light shining on the sprite. | Sets the color of the light shining on the sprite. | ||
- | Red, Green, | + | 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 === | === Examples === | ||
< | < | ||
# Make the image be viewed under a red light | # Make the image be viewed under a red light | ||
- | Self " | + | Self " |
</ | </ | ||
- | |||
- |