module

MJ::BackdropLibrary

Backdrop library: full-frame background images for diorama scenes — the cut:false palette entries (the prop library supplies the cut:true cut-outs). A flat directory of image files under Config.backdrops_dir; a backdrop is a single image, so unlike props it needs no folder. PNG for now (dims read straight from the header); .webp support is a later option (P5).

Constants

IMAGE_EXTS = [".png", ".webp"] of ::String

Class methods

list

Every sizeable image in the backdrop dir, sorted by name. Images we can't size yet (e.g. .webp until P5) are skipped rather than listed without dimensions.

Source
png_dims(path : String) : Tuple(Int32, Int32) | Nil

Width/height from a PNG's IHDR without decoding the pixels. nil for non-PNG or a short file.

Source
root
Source

Nested types