"Gooey-Effect" for android-compose

Overview

Gooey effect for android-compose

"Gooey" is a library made to use "gooey-effect" that exists as a CSS trick in android-compose.

Download

repositories {
    ...
    maven { url 'https://jitpack.io' }
}

dependencies {
  implementation 'com.github.D000L:gooey:0.1.0'
}

Usage

  1. Change parent layout to "GooeyBox"
  2. Change 'background' to 'gooey' in the child layout to apply "gooey-effect"
GooeyBox(contentAlignment = Alignment.Center, intensity = GooeyIntensity.High) {
    for (i in 0 until 3) {
        Box(
            modifier = Modifier
            ...
            //.background(Color(0xFF4DFF94), shape = CircleShape)
            .gooey(Color(0xFF4DFF94), shape = CircleShape)
        )
    }
    Box(
        modifier = Modifier
        ...
        .gooey(Color(0xFFC4FF70), CircleShape)
    )
}

Usage With Canvas

To apply "gooey-effect" to many objects Use 'GooeyCanvas' and 'drawGooey'

GooeyBox() {
    GooeyCanvas(modifier = Modifier, onDraw = {
        drawIntoCanvas { canvas ->
            blobs.forEach {
                canvas.drawGooey(
                    Size(
                        with(density) { it.radius.dp.toPx() },
                        with(density) { it.radius.dp.toPx() }),
                    Color(it.color),
                    CircleShape,
                    Offset(it.x, it.y)
                )
            }
        }
    })

    Box(
        Modifier
            .size(80.dp)
            .offset(
                with(density) { current.x.toDp() - 40.dp },
                with(density) { current.y.toDp() - 40.dp })
            .gooey(
                Color(0xffffdd02),
                CircleShape
            )
    )
}

More Sample

License

Copyright 2022 D000L (SeokHo Im)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
Trying to play with Jetpack compose low level animations APIs, which are animate*AsState APIs.
Trying to play with Jetpack compose low level animations APIs, which are animate*AsState APIs.

ComposeSimpleAnimation Trying to play with Jetpack compose low level animations APIs, which are animate*AsState APIs that I needed in another project.

πŸͺ Jetpack Compose animation library that allows you to implement animations such as shared element transition.
πŸͺ Jetpack Compose animation library that allows you to implement animations such as shared element transition.

πŸͺ Jetpack Compose animation library that allows you to implement animations such as shared element transition.

A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android
A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android

android-flip Aphid FlipView is a UI component to accomplish the flipping animation like Flipboard does. A pre-built demo APK file for Android OS 2.2+

:rocket: Ultimate Android Reference - Your Road to Become a Better Android Developer
:rocket: Ultimate Android Reference - Your Road to Become a Better Android Developer

The goal of this project is to provide a hand-picked collection of Android libraries, tools, open-source projects, books, blogs, tutorials - you name

Deprecated in favour of https://developer.android.com/reference/android/support/v4/view/animation/PathInterpolatorCompat.html

Deprecated: use https://developer.android.com/reference/android/support/v4/view/animation/PathInterpolatorCompat.html instead. android-cubic-bezier-in

Android Country Picker is a Kotlin-first, flexible and powerful Android library that allows to integrate Country Picker with just a few lines.
Android Country Picker is a Kotlin-first, flexible and powerful Android library that allows to integrate Country Picker with just a few lines.

1. Add dependency dependencies { implementation 'com.hbb20:android-country-picker:X.Y.Z' } For latest version, 2. Decide your use-case

Allows the easy creation of animated transition effects when the state of Android UI has changed
Allows the easy creation of animated transition effects when the state of Android UI has changed

android-transition Android-Transition allows the easy creation of view transitions that reacts to user inputs. The library is designed to be general e

Actions for android animations. Inspired by libgdx scene2d actions.
Actions for android animations. Inspired by libgdx scene2d actions.

Android Animations Actions Actions for android animations. Inspired by libgdx scene2d actions. The main goal of this project is making creating of com

Android library for swipable gestures
Android library for swipable gestures

Swipper Android Library for custom views to control brightness , volume and seek through swipable gestures . These views could easily replace the conv

Owner
SeokHo-Im
SeokHo-Im
Add Animatable Material Components in Android Jetpack Compose. Create jetpack compose animations painless.

AnimatableCompose Add Animatable Material Components in Android Jetpack Compose. Create jetpack compose animation painless. What you can create from M

Emir Demirli 12 Jan 2, 2023
Library provides an easy way to a add shimmer effect in Android Compose project.

Add a shimmer effect to the layout in Android Compose

Valery 66 Dec 14, 2022
PassCode is the Android app made by using Jetpack Compose. Created for the test task submission.

PassCode PassCode is the Android app made by using the Jetpack Compose. Created for the test task submission. Showcase Dark Theme Light Theme ACs The

Basil Miller 1 May 25, 2022
A sample implementation Compose BottomSheet with animation different states

Compose Animated BottomSheet A sample implementation Compose BottomSheet with animation different states Medium post: https://proandroiddev.com/how-to

Yahor 40 Jan 6, 2023
Group of libraries to help you build better animations with Jetpack Compose

Group of libraries to help you build better animations with Jetpack Compose

null 36 May 12, 2022
DrawBox: a multi-purpose tool to draw anything on canvas, written completely on jetpack compose

DrawBox DrawBox is a multi-purpose tool to draw anything on canvas, written comp

Akshay Sharma 172 Dec 30, 2022
Backarrow-animation-example - Animate back arrow to close button in Compose using animated drawables

Animate Back Arrow to Close Icon in Compose This is a simple demo for animated v

Jose Mateo 3 Feb 17, 2022
Examples of the use of animations in jetpack compose and view, as well as measurements of perfomance

AndroidAnimationWorld ΠŸΡ€ΠΈΠΌΠ΅Ρ€Ρ‹ использования Π°Π½ΠΈΠΌΠ°Ρ†ΠΈΠΉ Π² jetpack compose ΠΈ view, Π° Ρ‚Π°ΠΊΠΆΠ΅ Π·Π°ΠΌΠ΅Ρ€Ρ‹ perfomance для

Lukian Zhukov 7 Oct 22, 2022
πŸͺ Jetpack Compose animation library that allows you to implement animations such as shared element transition.

Orbitary ?? Jetpack Compose animation library that allows you to implement animations such as shared element transition. Download Gradle Add the depen

Jaewoong Eum 503 Dec 30, 2022
Jetpack Compose Animations

Jetpack Compose Animations Animations Duolingo Owl - Anmol Verma Screen.

Anmol Verma 218 Dec 29, 2022