Description
HypnoticCanvas is a library for Compose Multiplatform and Jetpack Compose that adds animated shader backgrounds to your UI. You apply it as a modifier, Modifier.shaderBackground, so the shader sits behind your existing content. You set the animation speed, and you can configure the colours and scale of a mesh gradient. On Android below API 33, shaders are not available, so you supply a Brush as the fallback, and the default fallback is transparent. The library works on Android, desktop JVM, iOS and Wasm, and the repository includes a sample app for each. The three core shaders, MeshGradient, MesmerizingLens and GlossyGradients, are MIT licensed. A separate optional module, hypnoticcanvas-shaders, adds more shaders, including texture shaders such as PrismGlass and SpectralAurora. The README warns that this module includes noncommercial shaders with their own license terms, which should be read before use. The quickstart shows adding the core dependency from Maven Central to commonMain, and applying a shader inside a composable. The project suits Compose developers who want animated backgrounds without writing their own shader code.…
Highlights
- Shader background as a Compose modifier
- Animation speed control
- MeshGradient colours and scale
- Android fallback brush below API 33
- Android, desktop, iOS and Wasm samples
Ratings & Reviews
No ratings yet
Be the first to rate HypnoticCanvas.
People also visit
ComposeViews
Compose Multiplatform views, in to Android, Web, Desktop, iOS: Pager, Banner
HypnoticCanvas FAQ
What is HypnoticCanvas?
A library that adds animated shader backgrounds to Compose Multiplatform and Jetpack Compose apps.
How do I add it?
Add the core dependency to commonMain, using the version shown on the Maven Central badge, then apply the shader modifier.
What happens on older Android devices?
Below API 33, you supply a Brush as the fallback. The default is transparent.
Which platforms are supported?
Android, desktop JVM, iOS and Wasm, according to the README.
Are all shaders free to use?
The three core shaders are MIT licensed. The optional shaders module includes noncommercial shaders with separate license terms.
What are the best HypnoticCanvas alternatives?
Popular alternatives to HypnoticCanvas include Liquid, Haze and Animate Compose. See all HypnoticCanvas alternatives



