Skip to content

Instantly share code, notes, and snippets.

@Kpeved
Created February 22, 2023 21:11
Show Gist options
  • Save Kpeved/395f6b5f730bed20a38ab2a7cb601543 to your computer and use it in GitHub Desktop.
Save Kpeved/395f6b5f730bed20a38ab2a7cb601543 to your computer and use it in GitHub Desktop.
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