SneakySquid
Jun 5th, 2024
191
0
Never
This is comment for paste Ellipses!
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Ellipse = include("ellipse.lua")
  2.  
  3. local x, y = ScrW() / 2, ScrH() / 2
  4. local ellipse_test = Ellipse(600, 400, 0, 360, 1, color_white)
  5.  
  6. hook.Add("PostRender", ellipse_test, function()
  7.     cam.Start2D()
  8.         render.SetMaterial(Material("vgui/white"))
  9.         ellipse_test(x, y, (1 + math.sin(CurTime())) / 2 * 360)
  10.     cam.End2D()
  11. end)
  12.  
  13. timer.Simple(1, function()
  14.     ellipse_test:Destroy()
  15.     print("Removed ellipse.")
  16. end)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment