PiDraw API
    Preparing search index...

    Interface BezierPoint

    A point that a smooth curve goes through, and how the curve goes through it.

    interface BezierPoint {
        direction?: BezierDirection;
        point: XY;
        ratio?: number;
    }
    Index
    direction?: BezierDirection

    The direction of the curve at the point: 'horizontal' or 'vertical' (the sense is the one that goes toward the other points), or an angle in degrees, counterclockwise as seen on the screen. By default the curve is smooth: it goes along the line between the neighbours of the point.

    point: XY

    A position in pixels (a Point fits).

    ratio?: number

    How far the control points are from the point, as a part of the distance between its neighbours. 0.2 by default; a number greater than 0.