GetLayerMask
From Spheriki
Obtain whatever color mask is being applied to a given map layer.
Contents |
[edit]
Usage
Color GetLayerMask(layer);
- layer Number, non-negative. The index of the layer to get the mask color from.
- Sphere Color object is returned, representing the mask color.
[edit]
Examples
It's as simple as this:
var mask_color = GetLayerMask(0);
This will get the color used to mask layer zero of the current map.
[edit]
Notes
- This function goes hand in hand with SetLayerMask().
[edit]
See also
- Sphere Color object

