diff options
Diffstat (limited to 'chuck/OSCGraphicsLayer.ck')
-rw-r--r-- | chuck/OSCGraphicsLayer.ck | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chuck/OSCGraphicsLayer.ck b/chuck/OSCGraphicsLayer.ck index 9aed84e..77afd98 100644 --- a/chuck/OSCGraphicsLayer.ck +++ b/chuck/OSCGraphicsLayer.ck @@ -4,7 +4,7 @@ public class OSCGraphicsLayer { fun void init(OscSend @osc_send, string type, string osc_types, - int pos, string name, int geo[]) /* pseudo-constructor */ + int pos, string name, int geo[], float opacity) /* pseudo-constructor */ { if (geo == null) [0, 0, 0, 0] @=> geo; @@ -12,11 +12,12 @@ public class OSCGraphicsLayer { osc_send @=> this.osc_send; name => this.name; - osc_send.startMsg("/layer/new/"+type, "isiiii"+osc_types); + osc_send.startMsg("/layer/new/"+type, "isiiiif"+osc_types); pos => osc_send.addInt; name => osc_send.addString; for (0 => int i; i < 4; i++) geo[i] => osc_send.addInt; + opacity => osc_send.addFloat; } class GeoPort extends OSCGraphicsPort { |