q5play
    Preparing search index...

    Function inStroke

    • 💅 Checks if a given point is within the current path's stroke.

      Not available in q5 WebGPU.

      Parameters

      • x: number

        x-coordinate of the point

      • y: number

        y-coordinate of the point

      Returns boolean

      true if the point is within the stroke, false otherwise