Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unhappychoice/color-hash.kt
:traffic_light: https://github.com/zenozeng/color-hash implementation by Kotlin/Android
https://github.com/unhappychoice/color-hash.kt
android color color-hash kotlin pure-kotlin random
Last synced: about 2 months ago
JSON representation
:traffic_light: https://github.com/zenozeng/color-hash implementation by Kotlin/Android
- Host: GitHub
- URL: https://github.com/unhappychoice/color-hash.kt
- Owner: unhappychoice
- License: mit
- Created: 2016-05-28T08:01:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-06T07:36:55.000Z (about 2 months ago)
- Last Synced: 2024-08-06T09:38:04.798Z (about 2 months ago)
- Topics: android, color, color-hash, kotlin, pure-kotlin, random
- Language: Kotlin
- Homepage:
- Size: 326 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - unhappychoice/color-hash.kt - :traffic_light: https://github.com/zenozeng/color-hash implementation by Kotlin/Android (Kotlin)
README
# color-hash.kt
[![CircleCI](https://circleci.com/gh/unhappychoice/color-hash.kt.svg?style=shield)](https://circleci.com/gh/unhappychoice/color-hash.kt)
[![](https://jitpack.io/v/unhappychoice/color-hash.kt.svg)](https://jitpack.io/#unhappychoice/color-hash.kt)
[![codecov](https://codecov.io/gh/unhappychoice/color-hash.kt/branch/master/graph/badge.svg)](https://codecov.io/gh/unhappychoice/color-hash.kt)
[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/unhappychoice/color-hash.kt.svg)](https://libraries.io/github/unhappychoice/color-hash.kt)
![GitHub](https://img.shields.io/github/license/unhappychoice/color-hash.kt.svg)https://github.com/zenozeng/color-hash implementation by Kotlin/Android
## Usage
```kotlin
val color = ColorHash(
"some string", // string which you want to use as hash
listOf(0.35, 0.5, 0.65), // lightness list
listOf(0.35, 0.5, 0.65), // saturation list
minHue: Int = 0,
maxHue: Int = 360
).toColor() // returns Android Color class// or just use
val color2 = "some hash string".toColor()
```## Installation
```groovy
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}dependencies {
compile 'com.github.unhappychoice:color-hash.kt:$version'
}
```## LISENCE
see [LISENCE](./LISENCE)