Skip to content

Commit

Permalink
Revert code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Aug 18, 2020
1 parent 325e64f commit 3e8ba5b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ fun Int.toHexString(withAlpha: Boolean = false, withHexPrefix: Boolean = true):
}

fun Int.toRgbaString(): String =
"rgba(${Color.red(this)}, ${Color.green(this)}, ${Color.blue(this)}, ${
(Color.alpha(
this
) / 255f).round(3)
})"
"rgba(${Color.red(this)}, ${Color.green(this)}, ${Color.blue(this)}, ${(Color.alpha(this) / 255f).round(3)})"

fun FloatArray.toColor(): Int = Color.HSVToColor(this)

Expand Down

0 comments on commit 3e8ba5b

Please sign in to comment.