Skip to main content

Module drawing

Module drawing 

Source
Expand description

Vector drawing primitives: paths, fills, strokes, caps, and gradients.

Modules§

path_smoothing
path_trim
stroke_utils

Structs§

Depth
Logical scene depth for lighting calculations.
GradientStop
A color stop for a gradient fill, defined by a position (% or px) and a color.
LinearGradient
Describes a linear gradient fill with a start and end point, and a list of color stops.
MaterialParams
Tunable response parameters for a light-reactive vector material.
RadialGradient
Describes a radial gradient fill with a start and end point, a radius, and a list of color stops.
SceneAmbientLight
Resolved ambient light for one logical canvas layer.
SceneLight
Resolved light contribution for one logical canvas layer.
SceneLighting
Resolved lighting state for one logical canvas layer.
Stroke
Describes the outline drawn around vector geometry.
Vector3
A three-dimensional vector in logical scene space.

Enums§

Fill
Describes how to fill vector geometry.
LightShape
Shape of a light contribution in logical scene space.
Material
Light-reactive surface response for vector primitives.
NavigationTarget
Describes where to open new windows or tabs when navigating to a URL from a Link node.
PathElement
Describes a single element of a vector path, such as a line, a point, or curve segment.
PathSmoothing
Controls optional curve smoothing for path geometry before tessellation.
StrokeCap
Controls how an open stroke terminates at the exposed endpoints of a path.
StrokeJoin
Controls how stroke segments are joined at path vertices.