Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bakhtiyork/gradients

A curated collection of splendid gradients made in Kotlin
https://github.com/bakhtiyork/gradients

Last synced: 25 days ago
JSON representation

A curated collection of splendid gradients made in Kotlin

Awesome Lists containing this project

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.

## Sample app

Screenshot1

## 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.