info = { type = "image", title = "Vault", category = "btc", author = "BRRRO", version = "1.0", license = "MIT", desc = "Gold bricks, coins and sparks", api = 33, } local BTC = { "00101000","11111100","01100110","01100110","01111100","01100011","01100011","11111110","00101000" } local SCENE = nil function render() local W, H, FPS = gfx.W, gfx.H, gfx.FPS if not SCENE then for y = 0, H - 1 do local f = y / H gfx.rect(0, y, W, 1, 108 + 42 * f, 86 + 36 * f, 44 + 22 * f) end for by = 2, H - 1, 6 do local x0 = (by // 6) % 2 == 1 and -3 or 0 for bx = x0, W - 1, 8 do gfx.rect(bx, by, 7, 5, 176, 142, 72) gfx.px(bx, by, 200, 168, 96) end end for st = 0, 1 do local ox = st == 0 and 2 or 40 for r = 0, 2 do for c = 0, 2 - r do local x, y = ox + r * 2 + c * 7, 60 - r * 4 gfx.rect(x, y, 6, 3, 255, 214, 110) gfx.px(x, y, 255, 240, 176) gfx.px(x + 5, y + 2, 182, 142, 62) end end end for ci = 0, 1 do local cx = ci == 0 and 3 or 49 for r = 1, 9 do local row = BTC[r] for c = 1, 8 do if row:sub(c, c) == "1" then gfx.px(cx + c - 1, 8 + r, 255, 206, 96) end end end end SCENE = gfx.snapshot(0, 0, W, H) else gfx.blit_rgb(SCENE, 0, 0, W, H) end for i = 0, 7 do if (i + frame // (FPS * 0.13)) % 4 == 0 then gfx.px((i * 37 + 7 + frame * 60 // FPS) % W, (i * 23 + 3) % H, 255, 250, 212) end end end