Skip to content

Instantly share code, notes, and snippets.

View sDevPrem's full-sized avatar
📚
Learning

Prem Thakur sDevPrem

📚
Learning
View GitHub Profile
@ardakazanci
ardakazanci / rippleglass.kt
Last active March 8, 2026 15:18
LiquidGlassAGSLShader
private const val LiquidGlassShaderSource = """
const float PI = 3.1415926;
const float FORCE = 0.08;
const float THICKNESS = 0.075;
const float FEATHERING = 0.1;
const float ABERRATION_OFFSET = 0.006;
const float FLASH_INTENSITY = 3.0;
const float REFRACTION_STRENGTH = 0.03;
/*
* Copyright 2026 Kyriakos Georgiopoulos
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ardakazanci
ardakazanci / SliceMenu.kt
Created November 30, 2024 07:44
Slice Menu in Jetpack Compose
@Composable
fun SliceMenu(modifier: Modifier = Modifier, onSliceClick: (Int) -> Unit) {
val slices = 6
val colors = listOf(
Brush.linearGradient(listOf(Color(0xFFFF1744), Color(0xFFFFC400))),
Brush.linearGradient(listOf(Color(0xFF1A237E), Color(0xFF2962FF))),
Brush.linearGradient(listOf(Color(0xFF00C853), Color(0xFF64DD17))),
Brush.linearGradient(listOf(Color(0xFFFF6D00), Color(0xFFFFAB00))),
Brush.linearGradient(listOf(Color(0xFFD500F9), Color(0xFF6200EA))),
Brush.linearGradient(listOf(Color(0xFF00BFA5), Color(0xFF00E5FF)))
@vishal2376
vishal2376 / FlipAnimation.kt
Created April 25, 2024 17:16
Card Flip Animation using Jetpack Compose
package com.vishal2376.animations.ui.theme
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.EaseInOut
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box