Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sudodios/particle-rain
Particle-Rain is library to rain your drawable on android
https://github.com/sudodios/particle-rain
Last synced: about 2 months ago
JSON representation
Particle-Rain is library to rain your drawable on android
- Host: GitHub
- URL: https://github.com/sudodios/particle-rain
- Owner: SudoDios
- License: apache-2.0
- Created: 2023-02-02T18:15:55.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T09:07:30.000Z (almost 2 years ago)
- Last Synced: 2023-05-30T13:28:31.085Z (over 1 year ago)
- Language: Kotlin
- Size: 329 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Particle-Rain
Particle-Rain is library to rain your drawable on android[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)
[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)
[![](https://jitpack.io/v/SudoDios/Particle-Rain.svg)](https://jitpack.io/#SudoDios/Particle-Rain)### How to use
Step 1 : Add it in your root build.gradle at the end of repositories:
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
Step 2 : Add the dependency:
```gradle
dependencies {
implementation 'com.github.SudoDios:Particle-Rain:1.0.1'
}
```### XML Layout
```xml```
### Kotlin
```kotlin
binding.particleRainView.apply {//set color of particles
color = Color.WHITE//max count to draw particles
maxCount = 100//speed of rain
speed = 0.5f//drawable res ID to draw on particles view
setParticleDrawableResId(me.sudodios.particlerain.R.drawable.snow)
}
```### Coming soon
```
1 - Support multiple drawable
2 - Support multiple colors
```
reference to main code [Telegram](https://github.com/DrKLO/Telegram)