Fixed bg lines positions

This commit is contained in:
Simon Cambier 2023-02-23 08:32:20 +01:00
parent c1484655cd
commit 81338b6203

4
bg.lua
View File

@ -6,7 +6,7 @@ function draw_animated_bg(startx)
local color = 1 local color = 1
-- vertical lines -- vertical lines
local t = t()+10 local t = t()+10
for i=startx-1,127,11 do for i=startx-1,127,9 do
local a=sin(i*t/512)*amplitude+64 local a=sin(i*t/512)*amplitude+64
local b=cos(i*t/256)*amplitude+64 local b=cos(i*t/256)*amplitude+64
line( line(
@ -18,7 +18,7 @@ function draw_animated_bg(startx)
end end
-- horizontal lines -- horizontal lines
for i=startx-1,127,11 do for i=startx-1,127,9 do
local a=sin(i*t/512)*amplitude+64 local a=sin(i*t/512)*amplitude+64
local b=cos(i*t/256)*amplitude+64 local b=cos(i*t/256)*amplitude+64
line( line(