mirror of
https://github.com/LDDestroier/CC/
synced 2025-03-03 18:25:16 +00:00
Update wpath.lua
This commit is contained in:
parent
cad7132e5b
commit
23d1868801
11
wpath.lua
11
wpath.lua
@ -8,6 +8,7 @@ wpath.bwcols = "087f78"
|
|||||||
wpath.waveLen = 3
|
wpath.waveLen = 3
|
||||||
wpath.textScale = 2.5
|
wpath.textScale = 2.5
|
||||||
wpath.delay = 0.05
|
wpath.delay = 0.05
|
||||||
|
wpath.doFlip = false
|
||||||
|
|
||||||
local rbow,bbow
|
local rbow,bbow
|
||||||
local sizePath = "size.lua"
|
local sizePath = "size.lua"
|
||||||
@ -50,12 +51,18 @@ local render = function(shift,mon)
|
|||||||
local scr_x,scr_y = mon.getSize()
|
local scr_x,scr_y = mon.getSize()
|
||||||
scr_y = scr_y + (scr_y % 2)
|
scr_y = scr_y + (scr_y % 2)
|
||||||
bow = mon.isColor() and rbow or bbow
|
bow = mon.isColor() and rbow or bbow
|
||||||
|
local txcol, bgcol
|
||||||
for y = 1, scr_y do
|
for y = 1, scr_y do
|
||||||
mon.setCursorPos(1,y)
|
mon.setCursorPos(1,y)
|
||||||
line = bow:rep(scr_x):sub(1,scr_x)
|
line = bow:rep(scr_x):sub(1,scr_x)
|
||||||
local text = ("#"):rep(scr_x)
|
local text = ("#"):rep(scr_x)
|
||||||
local txcol = wrap(line, -1*math.abs(y-scr_y/2)+shift-1)
|
if wpath.doFlip then
|
||||||
local bgcol = wrap(line, -1*math.abs(y-scr_y/2)+shift)
|
txcol = wrap(line, -1*math.abs(scr_y/2-y)+shift-1)
|
||||||
|
bgcol = wrap(line, -1*math.abs(scr_y/2-y)+shift)
|
||||||
|
else
|
||||||
|
txcol = wrap(line, -1*math.abs(y-scr_y/2)+shift-1)
|
||||||
|
bgcol = wrap(line, -1*math.abs(y-scr_y/2)+shift)
|
||||||
|
end
|
||||||
mon.blit(text,txcol,bgcol)
|
mon.blit(text,txcol,bgcol)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user