drawDashedLine(from:to:color:width:dash:aligned:)

    Draws a dashed line from a 2D point to another, with a given color and width. See also drawMultiline(points:color:width:) and drawPolyline(points:color:width:antialiased:).

    CanvasItem.swift:957
    final func drawDashedLine(from: Vector2, to: Vector2, color: Color, width: Double = -1.0, dash: Double = 2.0, aligned: Bool = true)

    If width is negative, then a two-point primitives will be drawn instead of a four-point ones. This means that when the CanvasItem is scaled, the line parts will remain thin. If this behavior is not desired, then pass a positive width like 1.0.

    Other members in extension

    Types

    Type members

    Instance members

    Show implementation details (1)

    Hide implementation details