diff options
author | Devine Lu Linvega <[email protected]> | 2018-06-08 20:47:15 +1200 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2018-06-08 20:47:15 +1200 |
commit | bbf0d6e083f7e47f4c4b6f006e141cd4d03d4517 (patch) | |
tree | c85bb49012f3152047ac2f5eeef1509572a33247 | |
parent | 4dd1b094246abc2ac662b2dbc53cea4c9b6b4532 (diff) | |
download | Orca-bbf0d6e083f7e47f4c4b6f006e141cd4d03d4517.tar.gz Orca-bbf0d6e083f7e47f4c4b6f006e141cd4d03d4517.zip |
A func always renders
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | desktop/sources/scripts/programs/a.js | 4 |
2 files changed, 2 insertions, 4 deletions
@@ -5,7 +5,7 @@ Not much is known about the machine, but it seems to be reacting to our presence ## Programs ### Add `A` -This function expects 2 numerical values, adds them up to generate an index, and create the function corresponding to this index, on **bang**. +This function expects 2 numerical values, adds them up to generate an index, and create the function corresponding to this index. ### Bang `B` The **bang** function is used to trigger various functions, only lasts one cycle. diff --git a/desktop/sources/scripts/programs/a.js b/desktop/sources/scripts/programs/a.js index ac5b49e..04ee6f7 100644 --- a/desktop/sources/scripts/programs/a.js +++ b/desktop/sources/scripts/programs/a.js @@ -4,12 +4,10 @@ function program_A(x,y) this.name = "add" this.glyph = "a"; - this.ports = [{x:-1,y:0},{x:1,y:0},{x:0,y:2,output:true},{x:0,y:0,bang:true}]; + this.ports = [{x:-1,y:0},{x:1,y:0},{x:0,y:2,output:true}]; this.operation = function() { - if(!this.bang()){ return; } - var left = !this.left() ? "0" : this.left().glyph var right = !this.right() ? "0" : this.right().glyph |