Skip to content

tettou771/ofxTextFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Windows 10 / VS2017 / OF 0.11.0
  • macOS / High Sierra / Xcode / OF 0.11.0

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

Usage

  1. Add this addon.
  2. Include ofxTextFlow.h.
  3. 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

About

this is a openFrameworks addon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published