Fixed bg lines positions
This commit is contained in:
parent
c1484655cd
commit
81338b6203
4
bg.lua
4
bg.lua
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user