TermText
TermText is a Processing library that gives you an in-sketch text buffer for monospaced, scrolling text.
TermText supports colors and simple text-wrapping.
current release is alpha1.
[]{download library as zip file}
Docs
Constructor
TermText(PApplet parent, float x, float y, float w, float h, float size, PGraphics canvas)
parent: the referring PApplet (usually 'this') x, y: top-left co-ords of the text box w, h: size of the text box size: font size canvas: the sketch's canvas
Methods
void println(String str, color c)
prints a newline followed by the string text str: the text string to add c: color of text (using Processing's color class)
void cls()
clears the buffer
void print(String str, color c)
prints a string to the buffer at cursor str: string to print c: color of text (using Processing's color class)
void draw()
draws the text buffer to the canvas
void newLine()
adds a new line to the buffer