KmpShaderWaveDistortion
No description available
Install / Use
/learn @HarukeyUA/KmpShaderWaveDistortionREADME
Wave Distortion Demo
A Compose Multiplatform application demonstrating a wave distortion effect using a RuntimeShader (AGSL/SKSL).
This project showcases complex visual effects in Compose Multiplatform that work across Android, iOS, Desktop (JVM), and Web (Wasm).
Features
- Interactive Ripple Effect: Tap anywhere on the image to trigger a wave distortion ripple.
- Real-time Customization: Adjust shader parameters dynamically using the control panel:
- Amplitude: Controls the strength of the distortion.
- Angular Frequency: Adjusts the frequency of the waves.
- Decay Rate: Determines how quickly the ripple fades out.
- Wave Speed: Controls the speed of the wave propagation.
- Tint Ratio: Adds a chromatic aberration effect based on the distortion strength.
- Auto Waves: Toggle automatic random wave generation to see the effect in action without interaction.
Platforms
This project targets the following platforms using Kotlin Multiplatform:
- Android
- iOS
- Desktop (JVM)
- Web (Wasm)
Getting Started
Prerequisites
- JDK 17 or higher
- Android Studio
- Xcode (for iOS development, macOS only)
Build and Run
Android
./gradlew :composeApp:assembleDebug
Desktop
./gradlew :composeApp:run
Web (Wasm)
./gradlew :composeApp:wasmJsBrowserDevelopmentRun
iOS
or
- Open
iosApp/iosApp.xcodeprojin Xcode and run the application.
Technologies Used
Demo
Try it out yourself with Web Demo
https://github.com/user-attachments/assets/554db6e0-8599-47e4-8c5b-39d29f2824d6
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
