Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- radius = 100
- speed = 1
- quality=5
- function test()
- color = {255,255,255,10}
- for angle =0,360,speed
- do
- for radiuss=0,radius,quality do
- x=tpt.mousex+(radiuss*(math.cos(angle/2)))
- y=tpt.mousey+(radiuss*(math.sin(angle/2)))
- if x >0 and x<610 and y>0 and y<383 then
- if tpt.get_property("type",x,y) == 0 then else
- tpt.drawline(tpt.mousex,tpt.mousey,x,y,color[1],color[2],color[3],color[4]) break
- end
- if radius == radiuss then tpt.drawline(tpt.mousex,tpt.mousey,x,y,color[1],color[2],color[3],color[4]) end
- else
- if x<0 then x = 0 end
- if x>611 then x = 611 end
- if y<0 then y = 0 end
- if y>383 then y = 383 end
- tpt.drawline(tpt.mousex,tpt.mousey,x,y,color[1],color[2],color[3],color[4])
- end
- end
- end
- end
- tpt.register_step(test)
- cF = 60
- function whatfps()
- f=os.clock()
- fps=1/(f-cF)
- cF=f
- tpt.drawtext(10,10,"fps: "..fps.." \nquality: "..quality.."\nradius: "..radius.."\ncolor: "..color[1]..","..color[2]..","..color[3]..","..color[4])
- end
- --tpt.register_step(whatfps)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement