SetMask
SetMask

Changes the mask used by the fade

bSuccess = myMasks.SetMask( Type )

Return value
TRUE if successful, otherwise FALSE.

Parameters
  • Type
    Pointer to a mask function; This can be one of your own (takes a surface and a value from 0 to 1 and draws the desired shapes onto the surface) or one of the following:
    • Masks_Circle
      Simple circle which expands to fill the screen
    • Masks_Triangle
      Triangle pointing left which expands to fill the screen
    • Masks_TriangleB
      Same as Triangle, but faces right
    • Masks_Square
      A square which expands to fill the screen
    • Masks_Rectangle
      A rectangle which expands to fill the screen
    • Masks_Diamond
      A diamond which expands to fill the screen
    • Masks_Star
      A star which rotates and expands to fill the screen
    • Masks_LinesUp
      Diagonal lines (NW/SE) fill the screen
    • Masks_LinesDown
      Diagonal lines (NE/SW) fill the screen
    • Masks_Cross
      A mix of LinesUp and LinesDown
    • Masks_TopBottom
      Diagonal bar (NE/SW) moves in from top+bottom
    • Masks_BottomTop
      Diagonal bar (NW/SE) moves in from top+bottom
    • Masks_BallTopBottom
      Same as TopBottom but with balls instead of bars
    • Masks_BallBottomTop
      Same as BottomTop but with balls instead of bars
    • Masks_BallAll
      4 circles; one in each corner; expand to fill the screen
    • Masks_BallFive
      A mix of BallAll and Circle
    • Masks_CircleCrossOver
      Top-left and bottom-right have balls expanding, while top-right and bottom-left have a mathematical pattern
    • Masks_TopBottomWithLines
      It's just getting silly now
    • Masks_BallTopBottomWithLines
      Try the fades for yourself and see what you think :P
    • Masks_BottomTopWithLines
      Same as TopBottomWithLines but mirrored
    • Masks_BallBottomTopWithLines
      Same as BallTopBottomWithLines but mirrored
    • Masks_OpenH
      Frame splits vertically and opens
    • Masks_OpenV
      Frame splits horizontally and opens
    • Masks_Eye
      An eye-like effect
    • Masks_Magic
      A strange effect. Note that you should not use Blending_Off with this.
See also
Masks:GetMask



JAM © 2005 no one in particular
Project started by David Evans in 2005