Skip to content

Instantly share code, notes, and snippets.

@stevdza-san
stevdza-san / AnimatedBorderCard.kt
Last active May 18, 2025 20:05
Card with Animated Border built with Jetpack Compose.
@Composable
fun AnimatedBorderCard(
modifier: Modifier = Modifier,
shape: Shape = RoundedCornerShape(size = 0.dp),
borderWidth: Dp = 2.dp,
gradient: Brush = Brush.sweepGradient(listOf(Color.Gray, Color.White)),
animationDuration: Int = 10000,
onCardClick: () -> Unit = {},
content: @Composable () -> Unit
) {
@hoangchungk53qx1
hoangchungk53qx1 / TestCropImageCompose
Last active February 4, 2025 14:47
TestCropImageCompose
@OptIn(ExperimentalMaterial3Api::class, ExperimentalLayoutApi::class)
@Composable
fun TestCropImage() {
val context = LocalContext.current
val cropView = remember {
CropImageView(context).apply {
isAutoZoomEnabled = false
cropShape = CropImageView.CropShape.RECTANGLE
@awxkee
awxkee / Gauss.kt
Last active June 10, 2025 02:46
OpenGLES 2/3 Gaussian Blur
package com.example.simpleegl
import android.app.ActivityManager
import android.content.Context
import android.graphics.Bitmap
import android.opengl.EGL14
import android.opengl.EGL15
import android.opengl.EGLConfig
import android.opengl.EGLContext
import android.opengl.EGLDisplay