Area2

Area2

Function. Outputs a 2D point on a user-painted area.

Valid input range is [0; 1]. The block provides stable (deterministic) output: the same input always produces the same point. To get random points within the painted area, connect the input to a Random block with range [0; 1).

The area is painted visually in the editor when the block is selected.

Properties & inputs:

  • Optimized pix. size (property): The painted area is downsampled to this pixel size for performance. The checkerboard in the Preview window shows cells of this size.

Outputs:

  • Square (float): Total area of the painted region in units. One unit corresponds to a 100×100 square.
  • Position (vec2): 2D position within the painted area for the given input.