Created
February 22, 2023 21:11
-
-
Save Kpeved/395f6b5f730bed20a38ab2a7cb601543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spacer(... | |
.drawBehind { | |
... | |
hours.forEach { | |
if (!dotsVisibility[it]) return@forEach | |
val degree = it * 30f | |
rotate(degree) { | |
val start = Offset(size.width / 2, 0f) | |
val end = Offset(size.width / 2, strokeWidth) | |
drawLine( | |
color = Color.White, | |
start = start, | |
end = end, | |
strokeWidth = strokeWidth, | |
) | |
} | |
} | |
... | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment