Skip to main content

Module sheet

Module sheet 

Source
Expand description

The contact sheet of a one-bit bake (bake --sheet <file>): every picture the bake dithered, a row each, its source on the left and its one-bit picture from the pack on the right, so an artist sees at a glance which ones the dither spoiled and are worth drawing by hand in the target’s layer. Each pixel is SCALE × SCALE, so the dots show, on a grey ground that see-through pixels show too.

Constants§

GAP
The ground between and around the pictures, in sheet pixels.
GROUND
The ground’s colour: a middle grey, neither the one-bit black nor its white.
SCALE
How many sheet pixels a picture’s pixel is, each way.

Functions§

draw
The contact sheet, a PNG file, of the pictures at paths: each read from source (a PNG) and from pack (its one-bit picture). An error names a picture that is no PNG in the sources or no one-bit picture in the pack.