Add more n-point gradients (#139)

This commit is contained in:
Abe Pazos
2020-07-21 18:19:36 +02:00
committed by GitHub
parent c6a883f6b9
commit 5d9333cb50
8 changed files with 235 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ fun main() {
}
val numPoints = 8
val gradient = NPointGradient(numPoints, Array(numPoints) {
val gradient = NPointGradient(Array(numPoints) {
ColorXSVa(it * 360.0 / numPoints, 1.0, 1.0).toRGBa()
})