aboutsummaryrefslogtreecommitdiff
path: root/chuck/OSCGraphicsLayer.ck
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-17 03:39:01 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-17 03:39:01 +0200
commitabfc56b8c4fc768593c7afdd1961aab35c0468c4 (patch)
tree1d39b8312b4ae0abdf63c3a1708be67f3c873811 /chuck/OSCGraphicsLayer.ck
parentd7eb9b29c8bcfd9ca97e0604b5b1868b3967164e (diff)
downloadosc-graphics-abfc56b8c4fc768593c7afdd1961aab35c0468c4.tar.gz
all layer constructor methods support an alpha argument
Diffstat (limited to 'chuck/OSCGraphicsLayer.ck')
-rw-r--r--chuck/OSCGraphicsLayer.ck5
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 {