Tash
06/10/2022, 6:15 PMColton Idle
06/10/2022, 7:31 PMandrew
06/10/2022, 7:54 PMval 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)
}
Colton Idle
06/11/2022, 12:11 AMTash
06/12/2022, 9:41 PM