# kyant0/androidliquidglass architecture

> Architecture diagram of the GitHub repository kyant0/androidliquidglass, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kyant0/androidliquidglass
- Repository: https://github.com/kyant0/androidliquidglass

## Overview

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: [`backdrop/src/commonMain/kotlin/com/kyant/backdrop/BackdropEffectScope.kt`](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/BackdropEffectScope.kt) (Effect scope), [`app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations`](https://github.com/kyant0/androidliquidglass/tree/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations) (Demo screens), [`app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components`](https://github.com/kyant0/androidliquidglass/tree/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components) (Example components), [`backdrop/src/commonMain/kotlin/com/kyant/backdrop/RuntimeShaderCache.kt`](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/RuntimeShaderCache.kt) (Shader cache)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Demo catalog"]
  node_app_entry["Platform app entry<br/>[MainContent.kt]"]
  node_catalog_router["Destination router<br/>[MainContent.kt]"]
  node_demo_screens["Demo screens"]
  node_demo_scaffold["Demo scaffold"]
  node_example_components["Example components"]
  node_drag_animation["Drag animation"]
end

subgraph group_backdrops["Backdrop rendering"]
  node_backdrop_api["Backdrop API<br/>[Backdrop.kt]"]
  node_draw_modifier["Backdrop drawing"]
  node_layer_backdrop["Layer backdrop<br/>[LayerBackdrop.kt]"]
  node_backdrop_variants["Backdrop variants"]
end

subgraph group_effects["Glass effects"]
  node_effect_scope["Effect scope"]
  node_blur["Blur effect<br/>[Blur.kt]"]
  node_lens["Lens effect<br/>[Lens.kt]"]
  node_color_filter["Color filter<br/>[ColorFilter.kt]"]
end

subgraph group_adornments["Surface treatments"]
  node_highlights["Highlights<br/>[Highlight.kt]"]
  node_highlight_style["Highlight styles<br/>[HighlightStyle.kt]"]
  node_shadows["Shadows<br/>[Shadow.kt]"]
  node_inner_shadows["Inner shadows<br/>[InnerShadow.kt]"]
end

subgraph group_runtime["Shader runtime"]
  node_shader_cache["Shader cache"]
  node_shader_platform["Platform shaders<br/>[RuntimeShader.kt]"]
end

node_visitor(("Catalog user"))

node_visitor -->|"opens"| node_app_entry
node_app_entry -->|"renders"| node_catalog_router
node_catalog_router -->|"selects"| node_demo_screens
node_demo_scaffold -->|"uses"| node_example_components
node_example_components -->|"uses"| node_drag_animation
node_example_components -->|"uses"| node_backdrop_api
node_demo_screens -->|"configures"| node_effect_scope
node_demo_screens -->|"configures"| node_highlights
node_draw_modifier -->|"draws"| node_layer_backdrop
node_backdrop_variants -->|"implements"| node_backdrop_api
node_effect_scope -->|"caches"| node_shader_cache
node_color_filter -->|"configures"| node_effect_scope
node_lens -->|"configures"| node_effect_scope
node_highlight_style -->|"obtains shaders"| node_shader_cache
node_highlights -->|"uses"| node_highlight_style
node_shader_platform -.->|"provides runtime"| node_shader_cache

click node_app_entry "https://github.com/kyant0/androidliquidglass/blob/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt"
click node_catalog_router "https://github.com/kyant0/androidliquidglass/blob/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt"
click node_demo_screens "https://github.com/kyant0/androidliquidglass/tree/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations"
click node_demo_scaffold "https://github.com/kyant0/androidliquidglass/blob/kmp/app/src/androidMain/kotlin/com/kyant/backdrop/catalog/BackdropDemoScaffold.kt"
click node_example_components "https://github.com/kyant0/androidliquidglass/tree/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components"
click node_drag_animation "https://github.com/kyant0/androidliquidglass/blob/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/utils/DampedDragAnimation.kt"
click node_backdrop_api "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/Backdrop.kt"
click node_draw_modifier "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/DrawBackdropModifier.kt"
click node_layer_backdrop "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops/LayerBackdrop.kt"
click node_backdrop_variants "https://github.com/kyant0/androidliquidglass/tree/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops"
click node_effect_scope "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/BackdropEffectScope.kt"
click node_blur "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Blur.kt"
click node_lens "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Lens.kt"
click node_color_filter "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/ColorFilter.kt"
click node_highlights "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/Highlight.kt"
click node_highlight_style "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/HighlightStyle.kt"
click node_shadows "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/Shadow.kt"
click node_inner_shadows "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/InnerShadow.kt"
click node_shader_cache "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/RuntimeShaderCache.kt"
click node_shader_platform "https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/skikoMain/kotlin/com/kyant/backdrop/RuntimeShader.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_entry,node_catalog_router,node_demo_screens,node_demo_scaffold,node_example_components,node_drag_animation,node_visitor toneBlue
class node_backdrop_api,node_draw_modifier,node_layer_backdrop,node_backdrop_variants toneAmber
class node_effect_scope,node_blur,node_lens,node_color_filter toneMint
class node_highlights,node_highlight_style,node_shadows,node_inner_shadows toneRose
class node_shader_cache,node_shader_platform toneIndigo
```

## Components

### Demo catalog

- [Platform app entry](https://github.com/kyant0/androidliquidglass/blob/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt): `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt`
- [Destination router](https://github.com/kyant0/androidliquidglass/blob/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt): `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt`
- [Demo screens](https://github.com/kyant0/androidliquidglass/tree/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations): `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations`
- [Demo scaffold](https://github.com/kyant0/androidliquidglass/blob/kmp/app/src/androidMain/kotlin/com/kyant/backdrop/catalog/BackdropDemoScaffold.kt): `app/src/androidMain/kotlin/com/kyant/backdrop/catalog/BackdropDemoScaffold.kt`
- [Example components](https://github.com/kyant0/androidliquidglass/tree/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components): `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components`
- [Drag animation](https://github.com/kyant0/androidliquidglass/blob/kmp/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/utils/DampedDragAnimation.kt): `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/utils/DampedDragAnimation.kt`

### Backdrop rendering

- [Backdrop API](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/Backdrop.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/Backdrop.kt`
- [Backdrop drawing](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/DrawBackdropModifier.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/DrawBackdropModifier.kt`
- [Layer backdrop](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops/LayerBackdrop.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops/LayerBackdrop.kt`
- [Backdrop variants](https://github.com/kyant0/androidliquidglass/tree/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops`

### Glass effects

- [Effect scope](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/BackdropEffectScope.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/BackdropEffectScope.kt`
- [Blur effect](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Blur.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Blur.kt`
- [Lens effect](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Lens.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Lens.kt`
- [Color filter](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/ColorFilter.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/ColorFilter.kt`

### Surface treatments

- [Highlights](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/Highlight.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/Highlight.kt`
- [Highlight styles](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/HighlightStyle.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/HighlightStyle.kt`
- [Shadows](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/Shadow.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/Shadow.kt`
- [Inner shadows](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/InnerShadow.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/shadow/InnerShadow.kt`

### Shader runtime

- [Shader cache](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/commonMain/kotlin/com/kyant/backdrop/RuntimeShaderCache.kt): `backdrop/src/commonMain/kotlin/com/kyant/backdrop/RuntimeShaderCache.kt`
- [Platform shaders](https://github.com/kyant0/androidliquidglass/blob/kmp/backdrop/src/skikoMain/kotlin/com/kyant/backdrop/RuntimeShader.kt): `backdrop/src/skikoMain/kotlin/com/kyant/backdrop/RuntimeShader.kt`

### Other components

- **Catalog user**

## Connections

- Catalog user → Platform app entry: opens
- Platform app entry → Destination router: renders (evidence: `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt`)
- Destination router → Demo screens: selects (evidence: `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/MainContent.kt`)
- Demo scaffold → Example components: uses (evidence: `app/src/androidMain/kotlin/com/kyant/backdrop/catalog/BackdropDemoScaffold.kt`)
- Example components → Drag animation: uses (evidence: `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components/LiquidBottomTabs.kt`)
- Example components → Backdrop API: uses (evidence: `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/components/LiquidBottomTabs.kt`)
- Demo screens → Effect scope: configures (evidence: `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations/ControlCenterContent.kt`)
- Demo screens → Highlights: configures (evidence: `app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations/ControlCenterContent.kt`)
- Backdrop drawing → Layer backdrop: draws (evidence: `backdrop/src/commonMain/kotlin/com/kyant/backdrop/DrawBackdropModifier.kt`)
- Backdrop variants → Backdrop API: implements (evidence: `backdrop/src/commonMain/kotlin/com/kyant/backdrop/backdrops/CombinedBackdrop.kt`)
- Effect scope → Shader cache: caches (evidence: `backdrop/src/commonMain/kotlin/com/kyant/backdrop/BackdropEffectScope.kt`)
- Color filter → Effect scope: configures (evidence: `backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/ColorFilter.kt`)
- Lens effect → Effect scope: configures (evidence: `backdrop/src/commonMain/kotlin/com/kyant/backdrop/effects/Lens.kt`)
- Highlight styles → Shader cache: obtains shaders (evidence: `backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/HighlightStyle.kt`)
- Highlights → Highlight styles: uses (evidence: `backdrop/src/commonMain/kotlin/com/kyant/backdrop/highlight/Highlight.kt`)
- Platform shaders → Shader cache: provides runtime
