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
-- vertical lines
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 b=cos(i*t/256)*amplitude+64
line(
@ -18,7 +18,7 @@ function draw_animated_bg(startx)
end
-- 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 b=cos(i*t/256)*amplitude+64
line(