VideoUltra API
    Preparing search index...

    Function shapeDistance

    • Signed distance from the shape's edge at (x, y) — negative inside. Coordinates: the shape's own space (y down), where proportional shapes fit the unit circle and stretched shapes fill ±aspect × ±1. Same maths as the shader.

      Parameters

      • p: Readonly<ShapePreset>
      • x: number
      • y: number
      • aspect: number = 1

      Returns number