Tile - YTriggerZoneBase - Color – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
<pre>get color(): YColor; | <pre>get color(): YColor; | ||
set color(value: YColor);</pre> | set color(value: YColor);</pre> | ||
=== Availability === | |||
[[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
Revision as of 12:16, 12 November 2021
Color
get color(): YColor; set color(value: YColor);
Availability
Description
Allows to get / set color of the target Trigger Zone.
Notes
- Get Color will return a Color literal. If written to console or log, the output will be in the format "[1, 1, 1, 1]". These represent [Red, Green, Blue, Alpha] and each number can be between 0 (least intensity) and 1 (most intensity). In this case, Alpha represents the transparency of the zone.
- Set Color will overwrite the current zone color and set the new zone color to the color literal or the Custom Color. A Get Color Tile can also be used.