vitoksmile / sample-compose-animated-garden

exploration of compose animation & compose multiplatform based on the "composable sheep" talk series

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

animated garden 🌻🌼🌱🌷

an exploration of compose animation & compose multiplatform based on the "composable sheep" talk series

original "composable sheep" talks by nicole and tasha:

the source code from these talks was also used as a reference for this project:

run it πŸƒβ€β™€οΈ

this project was built with IntelliJ IDEA Community Edition version 2022.3.2

the Garden app can be run on desktop πŸ’» or mobile πŸ“±

Note: on mobile, the RuntimeShader API requires Android 13 Tiramisu (SDK 33)

project contents

this project (and the accompanying blog series) covers the following:

concept exercise example
custom graphics with Canvas draw a sunflower
basic & complex compose animations animate a sunflower
background shaders for desktop and mobile grow a grassy background

draw a sunflower 🌻

learn to create custom graphics with Canvas

documentation: Graphics In Compose

source code:

animate a sunflower πŸ’«

familiarize yourself with compose animation APIs by animating different properties of the sunflower (size, angle, color...)

documentation:

source code:

add a background shader πŸ•ΆοΈ

learn how to implement background shaders on desktop and mobile

documentation:

source code:

About

exploration of compose animation & compose multiplatform based on the "composable sheep" talk series

License:MIT License


Languages

Language:Kotlin 100.0%