Advertisement
linesguy

Morphing vectors

May 23rd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. 5 v = 75 : rem vector count
  2. 10 R = 70 : rem radius
  3. 20 t = 0.1 : rem maximum movement speed
  4.  
  5. 1 text : home : print "Generating random numbers, please wait": for x = 0 to peek(78)*10 : er=rnd(1) : next
  6. 2 hgr : hcolor = 3
  7. 30 v = 1/v : v = v * 6.282
  8. 198Poke230,32:gosub 199:Poke49236,0:poke 230,64:gosub199:poke49237,0:goto198
  9. 199 fr=fr+1:?fr:call-3086
  10. 200 for x = 0 to 6.282 step v : hplot sin(x+v(1))*r+r,cos(x+v(2))*r+r to sin(x+v(3))*r+r,cos(x+v(4))*r+r : next
  11. 300 for x = 1 to 4 : av(x) = av(x) + (rnd(1)/100)-0.005
  12. 301 if av(x) < -t then av(x) = -t
  13. 302 if av(x) > t then av(x) = t
  14. 305 next
  15. 310 for x = 1 to 4 : v(x) = v(x) + av(x) : next
  16. 999 return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement