kandy 0.8.0-RC1 Help

Points Gradient

val random = kotlin.random.Random(42) val xs = List(100) { random.nextDouble(0.0, 10.0) } val ys = List(100) { random.nextDouble(0.0, 10.0) } val gradient = List(100) { random.nextDouble(0.0, 100.0) } plot { points { x(xs) y(ys) size = 7.5 color(gradient) { scale = continuous(Color.LIGHT_BLUE..Color.PURPLE, domain = 0.0..100.0) } } }
Points Gradient
Last modified: 12 December 2023