Advertisement
electronic_steve

#tptscripts light?!

May 11th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. radius = 100
  2. speed = 1
  3. quality=5
  4. function test()
  5. color = {255,255,255,10}
  6. for angle =0,360,speed
  7. do
  8. for radiuss=0,radius,quality do
  9. x=tpt.mousex+(radiuss*(math.cos(angle/2)))
  10. y=tpt.mousey+(radiuss*(math.sin(angle/2)))
  11. if x >0 and x<610 and y>0 and y<383 then
  12. if tpt.get_property("type",x,y) == 0 then else
  13. tpt.drawline(tpt.mousex,tpt.mousey,x,y,color[1],color[2],color[3],color[4])    break
  14. end
  15. if radius == radiuss then tpt.drawline(tpt.mousex,tpt.mousey,x,y,color[1],color[2],color[3],color[4])    end
  16. else
  17. if x<0 then x = 0 end
  18. if x>611 then x = 611 end
  19. if y<0 then y = 0 end
  20. if y>383 then y = 383 end
  21. tpt.drawline(tpt.mousex,tpt.mousey,x,y,color[1],color[2],color[3],color[4])
  22. end
  23. end
  24. end
  25. end
  26. tpt.register_step(test)
  27. cF = 60
  28. function whatfps()
  29.  f=os.clock()
  30.  fps=1/(f-cF)
  31.  cF=f
  32.  tpt.drawtext(10,10,"fps: "..fps.." \nquality: "..quality.."\nradius: "..radius.."\ncolor: "..color[1]..","..color[2]..","..color[3]..","..color[4])
  33. end
  34. --tpt.register_step(whatfps)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement