Expand description
Structs§
- Color
Coloris a straight-alpha sRGB color.- Contour
Contouris one path contour flattened into a polyline.- Contour
Measure ContourMeasurefinds positions, tangents, and segments by distance along a contour.- Dash
Dashdefines alternating painted and skipped lengths along each contour.- Matrix
Matrixis a full 4×4 column-major transform.- Path
Pathis an immutable collection of line and Bézier contours.- Path
Builder PathBuilderrecords commands used to create an immutablePath.- Path
Sample PathSamplecontains a position and direction along a measured contour.- Point
Pointis a position or vector in two-dimensional coordinates.- Rect
Rectis an axis-aligned rectangle in Valo’s y-down coordinate system.- Size
Sizeis a width and height in two-dimensional coordinates.- Stroke
Strokedescribes the width, ends, joins, and optional dash pattern of a line.
Enums§
- Cap
Capdetermines how a stroke ends at an open contour.- Fill
Rule FillRuledetermines which regions of overlapping contours are filled.- Join
Joindetermines how consecutive stroke segments meet.- Matrix
Kind MatrixKindclassifies the behavior relevant to two-dimensional rendering.- Winding
Windingselects the traversal direction of a closed contour.
Functions§
- constrain_
radii constrain_radiiproportionally reduces circular radii to fit a rectangle.- constrain_
radii_ elliptical constrain_radii_ellipticalproportionally reduces elliptical radii to fit.- dash_
contours dash_contourssplits contours into the painted stretches of a dash pattern.- local_
tolerance local_tolerancereturns local curve tolerance for quarter-pixel device error.- stroke_
contains stroke_containsreports whether a point lies inside expanded stroke geometry.- stroke_
strip stroke_stripexpands contours into triangle-strip vertices.