diff show/dance2014/effectClass.n3 @ 1192:5fc6a68b9d76

checkpoint show data Ignore-this: 35e077973bae23f6734508185c8aaf2b
author drewp@bigasterisk.com
date Sun, 15 Jun 2014 19:07:44 +0000
parents 5e7acb866b9f
children 19e8a57b060e
line wrap: on
line diff
--- a/show/dance2014/effectClass.n3	Sun Jun 15 18:21:16 2014 +0000
+++ b/show/dance2014/effectClass.n3	Sun Jun 15 19:07:44 2014 +0000
@@ -37,11 +37,9 @@
   rdfs:label "blacklight";
   :quneoNote 37;
   :code 
-    "env = <http://light9.bigasterisk.com/show/dance2014/song1/curve-1>",
-    "out = [env * p1, env * p2, env * p3, env * p4]",
-    "p1 = env * <http://light9.bigasterisk.com/show/dance2013/sub/blue> * .5",
-    "p2 = Strip.solid('R', (0,0,1))",
-    "p3 = Strip.solid('L', (0,0,1))",
+    "out = [env * p1, env * p2, env * p4]",
+    "p1 = env * <http://light9.bigasterisk.com/show/dance2013/sub/blue> * .3",
+    "p2 = Strip.solid('LR', (0,0,1))",
     "p4 = Blacklight(1)" 
     .
 
@@ -50,4 +48,16 @@
   rdfs:label "whiteLed";
   :code "out = Strip.solid('LR', (1,1,1))" .
 
+    
+effect:slowColor a :EffectClass;
+  rdfs:label "slow color chase";
+  :quneoNote 37;
+  :code
+    "period = 5",
+    "r = <http://light9.bigasterisk.com/show/dance2013/sub/red> * nsin(t / period)",
+    "y = <http://light9.bigasterisk.com/show/dance2013/sub/yellow> * nsin((t+.3) / period)",
+    "b = <http://light9.bigasterisk.com/show/dance2013/sub/blue> * nsin((t+.6) / period)",
+    "out = [r*env,y*env,b*env]"
+    .
+
     
\ No newline at end of file