Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ascii compositor #37

Open
selfsame opened this issue Jan 18, 2015 · 0 comments
Open

ascii compositor #37

selfsame opened this issue Jan 18, 2015 · 0 comments

Comments

@selfsame
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant