Skip to content

Instantly share code, notes, and snippets.

@mazzouzi
Last active September 24, 2022 11:49
Show Gist options
  • Save mazzouzi/7149a22efbdfd74cc97040d0e631846a to your computer and use it in GitHub Desktop.
Save mazzouzi/7149a22efbdfd74cc97040d0e631846a to your computer and use it in GitHub Desktop.
Quadratic Bézier Curve translation
.
.
Text(
text = "New York",
fontSize = 30.sp,
fontWeight = FontWeight.Bold,
modifier = Modifier
.graphicsLayer {
translationY = titleY.toPx()
translationX = titleX.toPx()
}
.onGloballyPositioned {
titleHeightPx = it.size.height.toFloat()
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment