Vector Graphics
Vector paths, paints, strokes, gradients, text, and the renderer that draws them, with their builders.
Commonly used
VectorCompositeA retained, tessellated vector-image asset (built from an SVG document).VectorRendererDraws a vector composite into a caller-owned render-target Texture.
All APIs in this topic
Reference assets and other modules with a script input.
Components, assets, and modules
| API | Description |
|---|---|
| VectorComposite SPECS | A retained, tessellated vector-image asset (built from an SVG document). |
Objects and data
| API | Description |
|---|---|
| VectorCompositeBuilder SPECS | A mutable builder for a VectorComposite assembled from programmatic fills — each a path painted with a VectorPaint (a solid color or a gradient). |
| VectorGradient SPECS | An immutable gradient paint — a linear or radial color ramp with a VectorComposite.SpreadMode. |
| VectorGradientBuilder SPECS | A mutable builder for an immutable VectorGradient paint. |
| VectorPaint SPECS | An immutable fill paint for VectorCompositeBuilder#addPath — either a flat solid color or a VectorGradient. |
| VectorPath SPECS | An immutable 2D path: an ordered list of contours built from straight and curved segments. |
| VectorPathBuilder SPECS | A mutable builder for an immutable VectorPath. |
| VectorRenderer SPECS | Draws a vector composite into a caller-owned render-target Texture. |
| VectorStroke SPECS | An immutable stroke style — width, line cap, line join, miter limit, and an optional dash pattern. |
| VectorStrokeBuilder SPECS | A mutable builder for an immutable VectorStroke style. |
| VectorText SPECS | An immutable text run style — content, size, weight, italics, letter spacing, and horizontalAlignment. |
| VectorTextBuilder SPECS | A mutable builder for an immutable VectorText run. |