info = { type = "image", title = "Deep sea", category = "animals", author = "BRRRO", version = "1.0", license = "MIT", desc = "Deep water, bubbles and a jellyfish", api = 33, } local BG function render() local W, H = gfx.W, gfx.H local t = frame / gfx.FPS local px, floor, sin = gfx.px, math.floor, math.sin if BG then gfx.blit_rgb(BG, 0, 0, W, H) else for y = 0, H - 1 do local f = y / H gfx.rect(0, y, W, 1, 20 - 12 * f, 60 - 34 * f, 110 - 48 * f) end BG = gfx.snapshot(0, 0, W, H) end for i = 0, 23 do local y = H - (t * 30 + i * 9) % (H + 10) if y >= 0 and y < H then px((i * 43 + 7) % W, y // 1, 150, 200, 230) end end local jx = 49 local jy = 16 + floor(2 * sin(t * 3.6) + 0.5) for yy = -3, 3 do local w = floor(math.sqrt(16 - 1.6 * yy * yy)) gfx.rect(jx - w, jy + yy, 2 * w + 1, 1, 184, 144, 242) end for tn = 0, 4 do for s = 0, 7 do px(jx - 4 + tn * 2, jy + 3 + s + floor(sin(s * 0.6 + t * 6 + tn) + 0.5), 154, 112, 212) end end end