Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartToolFactory committed May 24, 2022
1 parent f0312a5 commit d57f7cd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies {

<img src="./screenshots/m2_palette.png">

[Material Colors](https://materialui.co/colors/) can be accessed from Red to Brown. Brown, Grey, and
[Material Colors](https://materialui.co/colors/) can be accessed from Red to BlueGrey. Brown, Grey, and
BlueGrey swatches only have primary colors.

```kotlin
Expand Down Expand Up @@ -146,7 +146,7 @@ val material3ToneRange = listOf(

```

Call
Call that returns list of colors

```kotlin
fun getColorTonesList(color: Color): List<Color> {
Expand All @@ -164,7 +164,7 @@ fun getColorTonesList(color: Color): List<Color> {
}
```

that returns list of colors or
or to get Map with tone keys

```kotlin
fun getColorTonesMap(color: Color): Map<Int, Color> {
Expand All @@ -180,7 +180,6 @@ fun getColorTonesMap(color: Color): Map<Int, Color> {

```

to get Map with tone keys

## Gradient Rotation

Expand Down Expand Up @@ -254,7 +253,7 @@ fun rememberColorParser(): ColorNameParser {
}
}
```
And call `ColorParser.parseColor(color)`
And call `ColorNameParser.parseColor(color)`

Call it in a launchedEffect with snapshotFlow or in a ViewModel or UseCase

Expand Down

0 comments on commit d57f7cd

Please sign in to comment.