Clip & Mask (Pico-8)

Clip / nerdy

the clip region still refers to the unshifted screen, not the camera view. - Synchronizing camera and clip

push/pop clip

-- set new clipping area / saving previous setting
local saved = { clip( x, y, w, h, [clip_previous] ) }

-- ... some drawing

clip( unpack(saved)) -- restore

Circular Clipping Masks / lazydev

demo

Written on October 3, 2025, Last update on October 11, 2025
pico8 game-engine