pepeknamornik

Sinus Computercraft

Oct 24th, 2021
968
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.setBackgroundColor(colors.black)
  2. term.clear()
  3. local w, h = term.getSize()
  4. x = 1
  5. y0 = math.ceil(h/2)
  6.  
  7. for i = 0,w,1 do
  8. term.setCursorPos(i,y0)
  9. write("-")
  10. end
  11.  
  12. for i = 0,h,1 do
  13. term.setCursorPos(x+1,i)
  14. write("|")
  15. end
  16.  
  17. term.setTextColor(colors.lime)
  18. for i = 0,2.1*math.pi,0.1 do
  19. y = (math.sin(i)*15)
  20. x = x+1
  21. term.setCursorPos(x,y+y0)
  22. --paintutils.drawPixel(x,y+y0,colors.green)
  23. write("·")
  24. end
  25.  
  26. term.setCursorPos(3,1)
  27.  
RAW Paste Data