Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bakhtiyork/gradients
A curated collection of splendid gradients made in Kotlin
https://github.com/bakhtiyork/gradients
Last synced: about 1 month ago
JSON representation
A curated collection of splendid gradients made in Kotlin
- Host: GitHub
- URL: https://github.com/bakhtiyork/gradients
- Owner: bakhtiyork
- License: mit
- Created: 2018-10-14T09:05:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T05:20:30.000Z (almost 4 years ago)
- Last Synced: 2024-04-25T22:33:56.913Z (5 months ago)
- Language: Kotlin
- Size: 402 KB
- Stars: 52
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android - Gradients - A curated collection of splendid gradients. (Libraries / GUI)
- awesome-kotlin - Gradients - A curated collection of splendid gradients (Libraries)
- awesome-gradient - Gradients - A curated collection of splendid gradients (port of https://webgradients.com for Android) (Kotlin)
README
# Gradients
A curated collection of splendid gradients made in Kotlin (port of [https://webgradients.com](https://webgradients.com) for Android). Only linear gradients included for now.## Installation
Add to dependencies in gradle file
```
implementation 'com.bakhtiyor.gradients:gradients:0.1.0'
```## How To Use
```
view.drawable = Gradients.warmFlame()
```
You can set drawable shape:
```
view.drawable = Gradients.warmFlame().apply { shape = OvalShape() }
```## TODO
Implement radial and blended gradients.## Gredits
* [webgradients](https://github.com/itmeo/webgradients) by [itmeo](https://github.com/itmeo)## License
Gradients is available under the MIT license.