Is Within

Switch properties based on whether a shape's position falls within another.

Within Shape - connect a shape to be used as the boundary for other shapes to fall within.

Example usage:

  1. Create 2 Polygons.

  2. Name them Poly and Zone.

  3. Create an Is Within Behaviour.

  4. Connect > isWithin.withinShape.

  5. Create a Color Array.

  6. Add a second index to the array and set a color.

  7. Connect > colorArray.index.

  8. Connect > poly.fillColor.

As you move Poly around, when its pivot is within the Zone Shape its color will change to the second index of your Color Array.