Created
March 31, 2026 11:32
-
-
Save Mikkareem/b07d31bb4272762e347bcc1b0db9a3d3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @Composable | |
| internal fun NeonGlowText( | |
| text: String= "Neon", | |
| modifier: Modifier = Modifier, | |
| fontSize: TextUnit = 36.sp, | |
| color: Color = Color.Cyan | |
| ) { | |
| val blurRadii = listOf(28f, 25f, 10f, 3f, 1f) | |
| Box(modifier = modifier) { | |
| blurRadii.forEach { | |
| Text( | |
| text = text, | |
| fontSize = fontSize, | |
| color = color, | |
| style = TextStyle( | |
| shadow = Shadow( | |
| color = color, | |
| blurRadius = it | |
| ) | |
| ) | |
| ) | |
| } | |
| } | |
| } |
Author
Mikkareem
commented
Mar 31, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment