diff options
| author | Tim Redfern <redfernt@gmail.com> | 2023-04-19 20:16:23 +0100 |
|---|---|---|
| committer | Tim Redfern <redfernt@gmail.com> | 2023-04-19 20:16:23 +0100 |
| commit | cfd0496ac0ee9120c4bcb6a19ee6dcb2071ebc85 (patch) | |
| tree | a7dc4768ae223341063b24f256449fd6cd1d8169 /nextus/src/vectorPlugin.h | |
| parent | 192b6d22d5c523aebc7210b21846aeb4b74b2307 (diff) | |
2 key texts
Diffstat (limited to 'nextus/src/vectorPlugin.h')
| -rw-r--r-- | nextus/src/vectorPlugin.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nextus/src/vectorPlugin.h b/nextus/src/vectorPlugin.h index ff13b65..55027c9 100644 --- a/nextus/src/vectorPlugin.h +++ b/nextus/src/vectorPlugin.h @@ -194,10 +194,15 @@ class textPanel: public vectorPanel{ 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)); } + void update(){ + text.update(); + } vector<colourPolyline> getLines(){ - return text.getOutlines(text_scale,STYLE_OVERLAPPING,x,y+(ofGetHeight()*vert_pos),enable_anim,anim_rev,vert_spread,use_beat,beat_duration); + 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; } - void loadPext(const string & f){ + void loadText(const string & f){ text.load(f); } void loadPalette(const string & f){ |
