
Enables efficient use of blurhash in compose apps through SKSL/AGSL shaders, optimizing performance over traditional bitmap methods. Includes modular structure for diverse platform support.
Provides multiplatform library to use blurhash in your compose app.
Using SKSL/AGSL for the best possible performance compared to regular bitmap alternatives.
Add this to your build.gradle.kts
implementation("io.github.brys0:blurhash:0.0-4-ALPHA")You can now use it like this
@Composable
fun MyComposable() {
BlurHashImage(
"URGtW@NM}FV?w7={wOi{xYi%s,sm-CNZnPxt", // Your blurhash string
modifier = Modifier.fillMaxSize() // Modifiers you would like to apply
)
}This project contains several modules each for a different purpose.
blurhash - Contains the public code for implementing in your projectblurhash-skio - Contains the code specific to skia related implementations (WasmJS/Desktop/iOS)blurhash-shader - Contains the shader related code and processingsample - Contains a super simple sample project to demo the functionalityProvides multiplatform library to use blurhash in your compose app.
Using SKSL/AGSL for the best possible performance compared to regular bitmap alternatives.
Add this to your build.gradle.kts
implementation("io.github.brys0:blurhash:0.0-4-ALPHA")You can now use it like this
@Composable
fun MyComposable() {
BlurHashImage(
"URGtW@NM}FV?w7={wOi{xYi%s,sm-CNZnPxt", // Your blurhash string
modifier = Modifier.fillMaxSize() // Modifiers you would like to apply
)
}This project contains several modules each for a different purpose.
blurhash - Contains the public code for implementing in your projectblurhash-skio - Contains the code specific to skia related implementations (WasmJS/Desktop/iOS)blurhash-shader - Contains the shader related code and processingsample - Contains a super simple sample project to demo the functionality