Typst Fumadocs

Visualize

Documentation for functions related to Visualize in Typst.

Drawing and data visualization.

If you want to create more advanced drawings or plots, also have a look at the CeTZ package as well as more specialized packages for your use case.

Accessibility

All shapes and paths drawn by Typst are automatically marked as artifacts to make them invisible to Assistive Technology (AT) during PDF export. However, their contents (if any) remain accessible.

If you are using the functions in this model to create an illustration with semantic meaning, make it accessible by wrapping it in a figure function call. Use its alt parameter to provide an alternative description.

Definitions

NameDescription
circleA circle with optional content.
colorA color in a specific color space.
curveA curve consisting of movements, lines, and Bézier segments.
ellipseAn ellipse with optional content.
gradientA color gradient.
imageA raster or vector graphic.
lineA line from one point to another.
pathA path through a list of points, connected by Bézier curves.
polygonA closed polygon.
rectA rectangle with optional content.
squareA square with optional content.
strokeDefines how to draw a line.
tilingA repeating tiling fill.

On this page