Tash
Colton Idle
andrew
val shader = SweepGradientShader( Offset(width / 2, width / 2), colors, List(colors.size) { _sweepDeg * (it.toFloat() / (colors.size - 1)) / 360F } ).apply { val matrix = Matrix() matrix.postRotate(_startDeg - capDeg, width / 2, width / 2) setLocalMatrix(matrix) }
A modern programming language that makes developers happier.