cleanup
This commit is contained in:
parent
9f96626ea7
commit
6a02b24ae6
29 changed files with 653 additions and 583 deletions
|
|
@ -100,8 +100,8 @@ function pxl8.key_pressed(key)
|
|||
return C.pxl8_key_pressed(input, key)
|
||||
end
|
||||
|
||||
function pxl8.vfx_copper_bars(bars, time)
|
||||
local c_bars = ffi.new("pxl8_copper_bar[?]", #bars)
|
||||
function pxl8.vfx_raster_bars(bars, time)
|
||||
local c_bars = ffi.new("pxl8_raster_bar[?]", #bars)
|
||||
for i, bar in ipairs(bars) do
|
||||
c_bars[i-1].base_y = bar.base_y or 0
|
||||
c_bars[i-1].amplitude = bar.amplitude or 10
|
||||
|
|
@ -111,7 +111,7 @@ function pxl8.vfx_copper_bars(bars, time)
|
|||
c_bars[i-1].color = bar.color or 15
|
||||
c_bars[i-1].fade_color = bar.fade_color or bar.color or 15
|
||||
end
|
||||
C.pxl8_vfx_copper_bars(gfx, c_bars, #bars, time)
|
||||
C.pxl8_vfx_raster_bars(gfx, c_bars, #bars, time)
|
||||
end
|
||||
|
||||
function pxl8.vfx_plasma(time, scale1, scale2, palette_offset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue