struct

ContributorMural::SilhouetteMask

Inherits Struct < Value < Object

The lit cells of a traced image, on a columns × rows lattice. Cells are {column, row} in reading order; the renderer decides the order they fill in.

Constructors

new(columns : Int32, rows : Int32, cells : Array(Tuple(Int32, Int32)))
Source
parse(art : String) : SilhouetteMask

A mask drawn as text, one line per row and # for a lit cell — what the specs write instead of an image.

Source

Instance methods

cells
Source
columns
Source
rows
Source