import io.data2viz.color.*
import io.data2viz.geom.*
import io.data2viz.math.*
import io.data2viz.viz.*
fun main() {
lateinit var myCircle: CircleNode
val myViz = viz {
size = size(600, 600)
myCircle = circle {
x = .0
y = .0
radius = 10.0
fill = Colors.Web.red
}
on(KMouseMove) { event ->
myCircle.x = event.pos.x
myCircle.y = event.pos.y
render()
}
}
myViz.bindRendererOnNewCanvas()
}