Google is committed to advancing racial equity for Black communities. See how.

VertexMode

enum class VertexMode
kotlin.Any
   ↳ kotlin.Enum<androidx.compose.ui.graphics.VertexMode>
   ↳ androidx.compose.ui.graphics.VertexMode

Defines how a list of points is interpreted when drawing a set of triangles.

Used by Canvas.drawVertices.

Summary

Enum values

Draw the first point and each sliding window of two points as the vertices of a triangle.

Draw each sliding window of three points as the vertices of a triangle.

Draw each sequence of three points as the vertices of a triangle.

Extension functions
From androidx.compose.ui.graphics
actual VertexMode

Enum values

TriangleFan

enum val TriangleFan : VertexMode

Draw the first point and each sliding window of two points as the vertices of a triangle.

TriangleStrip

enum val TriangleStrip : VertexMode

Draw each sliding window of three points as the vertices of a triangle.

Triangles

enum val Triangles : VertexMode

Draw each sequence of three points as the vertices of a triangle.