Skip to main content

Module vector

Module vector 

Source
Expand description

Vector shapes: curves and polygons that PDF and SVG write as they are, and that the screen and spreadsheets get as a picture.

Structs§

Shape
A filled and/or outlined shape.

Enums§

Layer
What a picture is made of, for rasterize_layers: Shapes, plus what only a picture can show.
PathSegment
One step of a shape’s outline, in the page’s coordinates.

Functions§

append_rectangle
Appends a rectangle to an outline, for many rectangles in one shape.
ellipse
The outline of an ellipse inscribed in rect.
rasterize
Draws shapes into a picture of rect at scale pixels per point, smoothed.
rasterize_layers
Draws layers into a picture of rect at scale pixels per point, smoothed.
rectangle
The outline of a rectangle, with rounded corners when radius is above zero.