Plugin : Logical mask

Author:Rex.Rainbow

Download

Properties

Actions

Define mask

Action:Clean

  • Clean mask.

Action:Fill a rectangle

  • Fill a rectangle mask.
    • Left-top X ( number ) : Logical X position of Left-top point related by origin point.
    • Left-top Y ( number ) : Logical Y position of Left-top point related by origin point.
    • Width ( number ) : Witdh of area.
    • Height ( number ) : Height of area.
    • Value ( number or string ) : Filled value. Could be number or (JSON) string.

Action:Fill a point

  • Fill a point mask.
    • X ( number ) : Logical X position related by origin point.
    • Y ( number ) : Logical Y position related by origin point.
    • Value ( number or string ) : Filled value. Could be number or (JSON) string.

Action:Clean a point

  • Clean a point at mask.
    • X ( number ) : Logical X position related by origin point.
    • Y ( number ) : Logical Y position related by origin point.

Define mask - advance

Action:Flood fill

  • Flood fill the mask. This action need to have rex_SquareTx or rex_HexTx object.
    • Range ( number ) : Range of filled.
    • Value ( number or string ) : Filled value. Could be number or (JSON) string.

Masked area

Action:Clean

  • Clean Masked area.

Put

Action:Put mask

  • Put mask at board.
    • X ( number ) : Logical X position of origin point.
    • Y ( number ) : Logical Y position of origin point.

Setup

Action:Setup layout

  • Setup layout for flood filling.
    • Layout ( object ) : Layout to get neighbors

Expressions

For each

Expression:CurLX

  • Current Logical X in a For Each loop.

Expression:CurLY

  • Current Logical Y in a For Each loop.

Expression:CurValue

  • Current value of mask in a For Each loop.

Origin

Expression:OX

  • Logical X of Origin point.

Expression:OY

  • Logical Y of Origin point.

Conditions

Entered area

Condition:For each entered LXY

  • Repeat the event for each logical position of entered area.

Exit area

Condition:For each exit LXY

  • Repeat the event for each logical position of exited area.

Masked area

Condition:For each masked LXY

  • Repeat the event for each logical position of masked area.

Condition:In mask area

  • Testing if point is in masked area.
    • Logical X ( number ) : The X index.
    • Logical Y ( number ) : The Y index.