How kyant0/androidliquidglass works
Backdrop is a Compose Multiplatform liquid-glass effects library; the app is a cross-platform catalog demonstrating it. The catalog workflow enters MainContent, which selects a destination, while the library draws backdrop layers and applies configured effects and visual treatments. The README documents blur, lens, color-filter, highlight, shadow, and example-component capabilities. Some catalog and library modules are unsampled, so the graph limits their internal links to relationships supported by the README or SOURCE INDEX.
Main entry points: BackdropEffectScope.kt Effect scope · destinations Demo screens · components Example components · RuntimeShaderCache.kt Shader cache
Components 21
Demo catalog
- Platform app entry
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt - Destination router
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt - Demo screens
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations - Demo scaffold
app/src/androidMain/kotlin/com/kyant/backdrop/catalog/BackdropDemoScaffold.kt - Example components
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components - Drag animation
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/utils/DampedDragAnimation.kt
Backdrop rendering
- Backdrop API
backdrop/src/commonMain/kotlin/com/kyant/backdrop/Backdrop.kt - Backdrop drawing
backdrop/src/commonMain/kotlin/com/kyant/backdrop/DrawBackdropModifier.kt - Layer backdrop
backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops/LayerBackdrop.kt - Backdrop variants
backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops
Glass effects
- Effect scope
backdrop/src/commonMain/kotlin/com/kyant/backdrop/BackdropEffectScope.kt - Blur effect
backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Blur.kt - Lens effect
backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Lens.kt - Color filter
backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/ColorFilter.kt
Surface treatments
- Highlights
backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/Highlight.kt - Highlight styles
backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/HighlightStyle.kt - Shadows
backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/Shadow.kt - Inner shadows
backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/InnerShadow.kt
Shader runtime
- Shader cache
backdrop/src/commonMain/kotlin/com/kyant/backdrop/RuntimeShaderCache.kt - Platform shaders
backdrop/src/skikoMain/kotlin/com/kyant/backdrop/RuntimeShader.kt
Other components
- Catalog user
Connections 16
- Catalog user → Platform app entry: opens
- Platform app entry → Destination router: renders
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt - Destination router → Demo screens: selects
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt - Demo scaffold → Example components: uses
app/src/androidMain/kotlin/com/kyant/backdrop/catalog/BackdropDemoScaffold.kt - Example components → Drag animation: uses
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components/LiquidBottomTabs.kt - Example components → Backdrop API: uses
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components/LiquidBottomTabs.kt - Demo screens → Effect scope: configures
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations/ControlCenterContent.kt - Demo screens → Highlights: configures
app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations/ControlCenterContent.kt - Backdrop drawing → Layer backdrop: draws
backdrop/src/commonMain/kotlin/com/kyant/backdrop/DrawBackdropModifier.kt - Backdrop variants → Backdrop API: implements
backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops/CombinedBackdrop.kt - Effect scope → Shader cache: caches
backdrop/src/commonMain/kotlin/com/kyant/backdrop/BackdropEffectScope.kt - Color filter → Effect scope: configures
backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/ColorFilter.kt - Lens effect → Effect scope: configures
backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Lens.kt - Highlight styles → Shader cache: obtains shaders
backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/HighlightStyle.kt - Highlights → Highlight styles: uses
backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/Highlight.kt - Platform shaders → Shader cache: provides runtime