Skip to content

Instantly share code, notes, and snippets.

@V-Abhilash-1999
Created May 23, 2023 12:20
Show Gist options
  • Save V-Abhilash-1999/f0e542911dd35b7b418d0fb6262cecaa to your computer and use it in GitHub Desktop.
Save V-Abhilash-1999/f0e542911dd35b7b418d0fb6262cecaa to your computer and use it in GitHub Desktop.
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