Module visualize

Source
Expand description

Drawing and visualization.

Structs§

ChromaComponent
A chroma color component.
CircleElem
A circle with optional content.
Cmyk
An 8-bit CMYK color.
Component
An integer or ratio component.
ConicGradient
A gradient that interpolates between two colors radially around a center point.
Curve
A curve consisting of movements, lines, and Bézier segments.
CurveClose
Closes the curve by adding a segment from the last point to the start of the curve (or the last preceding curve.move point).
CurveCubic
Adds a cubic Bézier curve segment from the last point to end, using control-start and control-end as the control points.
CurveElem
A curve consisting of movements, lines, and Bézier segments.
CurveLine
Adds a straight line from the current point to a following one.
CurveMove
Starts a new curve component.
CurveQuad
Adds a quadratic Bézier curve segment from the last point to end, using control as the control point.
DashPattern
A line dash pattern.
EllipseElem
An ellipse with optional content.
FixedStroke
A fully specified stroke of a geometric shape.
GradientStop
A color stop.
Image
A loaded raster or vector image.
ImageElem
A raster or vector graphic.
LineElem
A line from one point to another.
LinearGradient
A gradient that interpolates between two colors along an axis.
PathElem
A path through a list of points, connected by Bézier curves.
PixelFormat
Information that is needed to understand a pixmap buffer.
PolygonElem
A closed polygon.
RadialGradient
A gradient that interpolates between two colors along a circle.
RasterImage
A decoded raster image.
RatioComponent
A component that must be a ratio.
RectElem
A rectangle with optional content.
Shape
A geometric shape with optional fill and stroke.
SquareElem
A square with optional content.
Stroke
Defines how to draw a line.
SvgImage
A decoded SVG.
Tiling
A repeating tiling fill.
WeightedColor
A color with a weight.

Enums§

CloseMode
How to close a curve.
Color
A color in a specific color space.
ColorSpace
A color space for color manipulation.
CurveComponent
A component used for curve creation.
CurveItem
An item in a curve.
DashLength
The length of a dash in a line dash pattern.
ExchangeFormat
A raster format typically used in image exchange, with efficient encoding.
FillRule
A fill rule for curve drawing.
Geometry
A shape’s geometry.
Gradient
A color gradient.
ImageFit
How an image should adjust itself to a given area,
ImageFormat
A raster or vector image format.
ImageKind
A kind of image.
ImageScaling
The image scaling algorithm a viewer should use.
LineCap
The line cap of a stroke
LineJoin
The line join of a stroke
Paint
How a fill or stroke should be painted.
PathVertex
A component used for path creation.
PixelEncoding
Determines the channel encoding of raw pixel data.
RasterFormat
A raster graphics format.
RatioOrAngle
A ratio or an angle.
RelativeTo
What is the gradient relative to.
VectorFormat
A vector graphics format.

Type Aliases§

Hsl
Hsv
LinearRgb
Luma
Oklab
Oklch
Rgb