Update easer.txt

This commit is contained in:
Niko 2025-04-24 16:33:44 +03:00 committed by GitHub
parent 73a3210855
commit f32ec994e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,10 @@
--@author Niko
--@shared
if SERVER then
chip():setNoDraw(true)
end
if CLIENT then
local holos = {}
@ -70,6 +74,7 @@ if CLIENT then
end
end)
end)
local FPS = 360
local next_frame = 0
@ -105,7 +110,7 @@ if CLIENT then
local f2 = malbert:getScale()[2]
local h = 0
local MOUSE_DOWN = false
local CLEAR = false
local CLEAR = true
local col = Color(h,255,255)
hook.add("InputPressed","MOUSE_DOWN",function(a)
@ -122,10 +127,6 @@ if CLIENT then
if a == MOUSE.MOUSE1 then
MOUSE_DOWN = false
end
if a == MOUSE.MOUSE2 then
CLEAR = false
end
end)
hook.add("RenderOffscreen","test",function()
@ -134,9 +135,12 @@ if CLIENT then
next_frame = now + fps_delta
render.selectRenderTarget("screenRT")
if CLEAR then
render.clear()
render.drawRect(0,0,1024,1024)
CLEAR=false
end
local x,y = getCursor()
@ -151,7 +155,7 @@ if CLIENT then
end)
hook.add("MouseWheeled","",function(a)
h=h+a*16
h=h+a*24
col = Color(h,255,255):hsvToRGB()
end)