← Back

ofxTextFlow

github.com/tettou771/ofxTextFlow · @tettou771
OF 0.11 GUI

this is a openFrameworks addon.

2 1 Last commit 6y ago Created 7y ago

Forks

Forks pushed to more recently than tettou771/ofxTextFlow itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

moebiussurfing/ofxTextFlow by @moebiussurfing · ★ 0 · pushed 6y ago

README

ofxTextFlow



Overview



This (FORK) is an addon for openFrameworks. I made it to show debug message on window (not console) easily.

Alt text

Changes by MoebiusSurfing. Original author: Toru Takata. Thanks Toru!

Requirement



ofxTextFlow doesn't depend other addons.

Tested system



I think compatible almost all versions, because it's simple addon.

Usage



1. Add this addon. 1. Include ofxTextFlow.h. 1. Put the static method ofxTextFlow::addText("My text") when you need.

It's gonna delete old message when over the max num (default: 30 lines).

You can use some method to change appearance. For example.

ofxTextFlow::setMaxLineNum(100); // set max line num 100
ofxTextFlow::setShowing(true); // show text-log box
ofxTextFlow::setTextColor(128(); // set text color
ofxTextFlow::setTitle("MIDI-Key LOG:"); // top title
ofxTextFlow::setMarginBorders(10); // padding to borders
ofxTextFlow::setShowingBBox(true); // background box
ofxTextFlow::setBBoxWidth(200); // box width
ofxTextFlow::setRounded(true, 5); // round rectangle
ofxTextFlow::setPosition(5, 5); // set box position
ofxTextFlow::setShowFPS(true); // ad fps debug to the tittle
ofxTextFlow::loadFont("mono.ttf", 8); // customize font. not required
ofxTextFlow::setLineHeight(12); // change line height


Get this addon

HTTPS
SSH