info = { type = "image", title = "Equalizer", category = "patterns", author = "BRRRO", version = "1.0", license = "MIT", desc = "Dancing bars, as if to music", api = 33, } local STEP_HZ = 30 function render() local W, H = gfx.W, gfx.H local t = frame * STEP_HZ // gfx.FPS for y = 0, H - 1 do local f = y / H gfx.rect(0, y, W, 1, 34 + 30 * f, 26 + 26 * f, 48 + 38 * f) end for i = 0, 15 do local h = 6 + math.floor(26 * math.abs(math.sin(t * 0.16 + i * 0.7) * math.cos(t * 0.1 + i)) + 0.5) for y = H - 1, H - h, -1 do local f = (H - 1 - y) / h gfx.rect(i * 4, y, 3, 1, 255, 80 + f * 150, 40 + f * 40) end end end