examples/circles/circles.nv
initial facts
use library
stacks iteration inline love
orbit width
10
orbit speed
2
create circle
repeat 100 times
get screen dimensions
rules
create circle
screen dimensions
Width Height
circles = ( 40 Width 40 sub random ) ( 40 Height 40 sub random ) ( 4 Width 0.02 mul random )
main loop
draw circles
draw fps at 10 10
draw circles
orbit width
Width
orbit speed
Speed
circles
X Y Radius
seen
X Y Radius
orbit = ( time Speed mul X add )
= draw circle size Radius at ( $ orbit cos Width mul X add ) ( @ orbit sin Width mul Y add )
draw circles
move seen to circles