Curves.Drawing.Subpath (curves v1.0.1)

Copy Markdown View Source

One continuous piece of a shape (see Curves.Drawing.Shape): a curve, and whether it is closed.

FieldWhat it holds
:curvea Curves.Spline.Curve (paths, rectangles, circles and ellipses) or a Curves.Polyline.Curve (lines, polylines and polygons). Use it with Curves.solve/3, Curves.take/3, Curves.Transform and Curves.Svg like any other curve.
:closedtrue when it joins back to its start: a path closed with Z, a polygon, a rectangle, a circle or an ellipse. The curve already includes the line back to the start.

Summary

Types

t()

@type t() :: %Curves.Drawing.Subpath{
  closed: boolean(),
  curve: Curves.Spline.Curve.t() | Curves.Polyline.Curve.t()
}