aboutsummaryrefslogtreecommitdiff
path: root/chuck/OSCGraphicsImage.ck
diff options
context:
space:
mode:
Diffstat (limited to 'chuck/OSCGraphicsImage.ck')
-rw-r--r--chuck/OSCGraphicsImage.ck8
1 files changed, 8 insertions, 0 deletions
diff --git a/chuck/OSCGraphicsImage.ck b/chuck/OSCGraphicsImage.ck
index 927cacd..fa3bd85 100644
--- a/chuck/OSCGraphicsImage.ck
+++ b/chuck/OSCGraphicsImage.ck
@@ -1,2 +1,10 @@
public class OSCGraphicsImage extends OSCGraphicsLayer {
+ fun string
+ file(string file)
+ {
+ osc_send.startMsg("/layer/"+name+"/file", "s");
+ file => osc_send.addString;
+
+ return file;
+ }
}