Created
May 23, 2023 12:20
-
-
Save V-Abhilash-1999/f0e542911dd35b7b418d0fb6262cecaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val hueColors = IntArray((huePanel.width()).toInt()) | |
var hue = 0f | |
for (i in hueColors.indices) { | |
hueColors[i] = AndroidColor.HSVToColor(floatArrayOf(hue, 1f, 1f)) | |
hue += 360f / hueColors.size | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment