Advertisement
linesguy

circle plotter (old)

Jan 26th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. 0 rem Note that this program was made long before i knew about sin() and cos(), and this only really exists for nostalgic purposes.
  2.  
  3. 5 rad = 95 : rem radius of circle. max 95.5
  4. 7 A = 1 : rem accuracy, decrease for more accurate results
  5. 10 hgr2 : hcolor = 3
  6. 11 va = rad
  7. 15 for x = 0 to sqr(va^2) step A
  8. 20 Y = sqr(va^2 - (X^2))
  9. 30 hplot va+X,va+Y
  10. 31 hplot to va+x,va-y
  11. 32 hplot va-x,va-y
  12. 33 hplot to va-x,va+y
  13. 40 next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement