diff options
| author | Tim Redfern <redfernt@gmail.com> | 2023-04-20 09:41:32 +0100 |
|---|---|---|
| committer | Tim Redfern <redfernt@gmail.com> | 2023-04-20 09:41:32 +0100 |
| commit | 1c028295bcf87c3f1c039d28cfbe59db1661be4e (patch) | |
| tree | 5384d3fa0f660719c812985ba9d09f1d21a3b095 /nextus/src/vectorPlugin.h | |
| parent | cfd0496ac0ee9120c4bcb6a19ee6dcb2071ebc85 (diff) | |
debugging text
Diffstat (limited to 'nextus/src/vectorPlugin.h')
| -rw-r--r-- | nextus/src/vectorPlugin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nextus/src/vectorPlugin.h b/nextus/src/vectorPlugin.h index 55027c9..00e38aa 100644 --- a/nextus/src/vectorPlugin.h +++ b/nextus/src/vectorPlugin.h @@ -189,15 +189,16 @@ class textPanel: public vectorPanel{ panel.add(beat_duration.set("duration factor", 0.5f, 0.0f, 1.0f)); panel.add(text_speed.set("speed", 5.0f, 0.0f, 25.0f)); panel.add(text_scale.set("scale", 0.1f, 0.0f, 0.5f)); - panel.add(enable_anim.set("animate", false)); + panel.add(enable_anim.set("animate", true)); panel.add(anim_rev.set("reverse", false)); panel.add(vert_pos.set("vert_pos", 0.0f, -0.3f, 0.3f)); panel.add(vert_spread.set("vert_spread", 0.0f, -0.3f, 0.3f)); + text.loadFont("fonts/EMSOsmotron.svg"); } void update(){ text.update(); } - vector<colourPolyline> getLines(){ + vector<colourPolyline> getLines(){ vector<colourPolyline> shapes=text.getOutlines(text_scale,STYLE_OVERLAPPING,0,0,enable_anim,anim_rev,vert_spread,use_beat,beat_duration); //ofLog()<<"text returned "<<shapes.size()<<" lines"; return shapes; |
