Issa
Box(modifier = Modifier.height(100.dp).width(100.dp).drawBehind { HorizontalGradient( 0.0f to Color.Red, 0.5f to Color.Green, 1.0f to Color.Blue, startX = 0.0f, endX = 100.0f ) })
height
width
Adam Powell
HorizontalGradient
Brush
val
draw*
drawBehind
drawWithCache
Modifier.drawWithCache { val brush = HorizontalGradient(...) onDraw { drawCircle(brush, ...) } }
Se7eN
size
DrawScope
A modern programming language that makes developers happier.