melonJS
    Preparing search index...

    Type Alias MaskShape

    MaskShape: Ellipse | Polygon | MaskImage | Sprite | string

    What a MaskEffect is shaped like:

    • an Ellipse (an iris) or a Polygon, unit-sized;
    • an image, or the name of a preloaded one: its silhouette;
    • a Sprite: the silhouette of the frame it shows when the effect starts.