mud.tilde.town icon indicating copy to clipboard operation
mud.tilde.town copied to clipboard

ascii compositor

Open selfsame opened this issue 11 years ago • 0 comments

A utility that can create a text area of a defined size, and composite text layers:

The color would probably be set as an argument when compositing a layer.

tc = TextCanvas(80, 30)

tc.composite([
"+---------------------------+",
"|                           |",
"|                           |",
"+---------------------------+"],
[0, 0], color("cyan"))

tc.composite(["[MENU]"],
[10, 0], color("red"))

This would work well with that paragraph formatter.

selfsame avatar Jan 18 '15 08:01 selfsame