Advertisement
linesguy

bezier curve ploter v1

Dec 22nd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. 10 hgr : hcolor = 3
  2.  
  3. 20 x1 = 0 : y1 = 0
  4. 30 x2 = 0 : y2 = 0
  5. 40 x3 = 0 : y3 = 159
  6.  
  7. 199Poke230,32:gosub 200:Poke49236,0:poke 230,64:gosub200:poke49237,0:goto199
  8. 200fr=fr+1:?"frame ";fr:call-3086
  9.  
  10. 240 hcolor = 5
  11. 250 hplot x1,y1 to x2,y2 to x3,y3
  12.  
  13. 260 hcolor = 3
  14. 270 for i = 0 to 1 step 0.01
  15. 280 hplot (((x3-x2)*i+x2)-((x2-x1)*i+x1))*i+((x2-x1)*i+x1), (((y3-y2)*i+y2)-((y2-y1)*i+y1))*i+((y2-y1)*i+y1)
  16. 290 next i
  17.  
  18. 300 o = o + 0.1
  19. 310 x2 = sin(o)*80+150 : y2 = cos(o)*80+80
  20.  
  21. 999 return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement