Skip to content

Instantly share code, notes, and snippets.

@fluxtah
Created February 17, 2020 10:21
Show Gist options
  • Save fluxtah/cc3d689a3b3ff662cb4b918519ef0300 to your computer and use it in GitHub Desktop.
Save fluxtah/cc3d689a3b3ff662cb4b918519ef0300 to your computer and use it in GitHub Desktop.
@Composable
private fun Fretwire(modifier: Modifier, scale: Float = 1.5f) {
Container(modifier = modifier, alignment = Alignment.CenterRight) {
ColoredRect(
modifier = Border(
RoundedCornerShape(1.dp),
1.dp,
Color.Black
) + LayoutSize(width = (BASE_FRETWIRE_WIDTH * scale).dp, height = (BASE_FRETBOARD_HEIGHT * scale).dp),
brush = SolidColor(Color.Gray)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment