GetLayerMask

From Spheriki

Jump to: navigation, search

Obtain whatever color mask is being applied to a given map layer.


Contents

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.


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.


Notes


See also

Personal tools