ansikit.paint

NFP Paint format support from CraftOS.

colors

A Palette that mimics the CraftOS colors API.

loadNFP

Signature → (string) -> table

Gets an NFP-formatted string and creates a table out of the representation. The table contains rows, and each row contains a color per column. No characters are involved.

loadImage

Equivalent to loadNFP, but it takes a filename and loads the image from a file.

drawImage

Signature → (table) -> nil

Prints an image that was loaded with loadImage or loadNFP.

Source

paint.moon