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

VertexMode

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

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

Used by Canvas.drawVertices. These enum values must be kept in sync with SkVertices::VertexMode.

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.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.