Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ascii ¶
Ascii renders src as ASCII art: each 7×13 cell is replaced with a character whose density matches the cell's mean luminance, drawn on a black background.
func Burn ¶
Burn overlays a "Doom-fire" simulated flame field over src — seeded along the bottom row, propagated upward with random horizontal drift and cooling, then colored via a black→red→orange→yellow→white palette.
func Lego ¶
Lego renders src as a mosaic of LEGO-style bricks. Each legoBrickSize-sized cell is filled with the average color of the corresponding region of src, with subtle bevels (lighter top/left, darker bottom/right) and a shaded circular stud at the cell's center. The two-tone stud rim — light on the upper-left, dark on the lower- right — makes the bumps read as spherical 3D studs instead of flat circles.
Output dimensions match src. Cells at the right/bottom edge that don't fit a full legoBrickSize get a clipped brick with no stud (better than a stud that overflows into the next non-cell area).
Types ¶
This section is empty.