Skip to content

Instantly share code, notes, and snippets.

@IslamBesto
Last active March 16, 2024 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IslamBesto/3c7bed2982c9e70360d06c0fe8898b26 to your computer and use it in GitHub Desktop.
Save IslamBesto/3c7bed2982c9e70360d06c0fe8898b26 to your computer and use it in GitHub Desktop.
Boundary
val pitchOutline = AndroidPath().apply {
moveTo(50f, 50f)
lineTo(size.width - 50f, 50f)
lineTo(size.width - 50f, size.height - 50f)
lineTo(50f, size.height - 50f)
close()
moveTo(50f, size.height / 2)
lineTo(size.width - 50f, size.height / 2)
}
drawPath(path = pitchOutline, color = Color.White, style = Stroke(3.dp.toPx()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment