' 3 connected sticks, rotating
'
graphics ! graphics clear ! draw color 0,0,0 ! draw size 1
cx=screen_width()/2 ! cy=screen_height()/2
r1=cx/3 ! r2=cx/2 ! r3=cx/6
sp1=1 ! sp2=-1.1 ! sp3=1.0
f1=0 ! f2=1.5 ! f3=0.25
da=.01 ! shadow on
for sp3=1 to 2 step .1
for a=0 to 64 step da
x=cx+r1*cos(sp1*a+f1)+r2*cos(sp2*a+f2)+r3*cos(sp3*a+f3)
y=cy+r1*sin(sp1*a+f1)+r2*sin(sp2*a+f2)+r3*sin(sp3*a+f3)
if a=0 then draw to x,y else draw line to x,y
next a
pause 2 ! graphics clear
next sp3
end