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

StrokeCap

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

Styles to use for line endings. See Paint.strokeCap.

Summary

Enum values

Begin and end contours with a flat edge and no extension.

Begin and end contours with a semi-circle extension.

Begin and end contours with a half square extension.

Enum values

Butt

enum val Butt : StrokeCap

Begin and end contours with a flat edge and no extension.

Round

enum val Round : StrokeCap

Begin and end contours with a semi-circle extension.

Square

enum val Square : StrokeCap

Begin and end contours with a half square extension. This is similar to extending each contour by half the stroke width (as given by Paint.strokeWidth).