Skip to main content

Vector Graphics

Vector paths, paints, strokes, gradients, text, and the renderer that draws them, with their builders.

Commonly used

All APIs in this topic

Reference assets and other modules with a script input.

Components, assets, and modules

APIDescription
VectorComposite SPECSA retained, tessellated vector-image asset (built from an SVG document).

Objects and data

APIDescription
VectorCompositeBuilder SPECSA mutable builder for a VectorComposite assembled from programmatic fills — each a path painted with a VectorPaint (a solid color or a gradient).
VectorGradient SPECSAn immutable gradient paint — a linear or radial color ramp with a VectorComposite.SpreadMode.
VectorGradientBuilder SPECSA mutable builder for an immutable VectorGradient paint.
VectorPaint SPECSAn immutable fill paint for VectorCompositeBuilder#addPath — either a flat solid color or a VectorGradient.
VectorPath SPECSAn immutable 2D path: an ordered list of contours built from straight and curved segments.
VectorPathBuilder SPECSA mutable builder for an immutable VectorPath.
VectorRenderer SPECSDraws a vector composite into a caller-owned render-target Texture.
VectorStroke SPECSAn immutable stroke style — width, line cap, line join, miter limit, and an optional dash pattern.
VectorStrokeBuilder SPECSA mutable builder for an immutable VectorStroke style.
VectorText SPECSAn immutable text run style — content, size, weight, italics, letter spacing, and horizontalAlignment.
VectorTextBuilder SPECSA mutable builder for an immutable VectorText run.