From 07c9ce99fe5c53ec942e5ccabfcee819b92baddd Mon Sep 17 00:00:00 2001 From: ASP1234 Date: Thu, 23 Jun 2016 07:46:13 +0000 Subject: Implement BOUNCEXY Block --- data_structures_correct/BOUNCEXY.js | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 data_structures_correct/BOUNCEXY.js (limited to 'data_structures_correct/BOUNCEXY.js') diff --git a/data_structures_correct/BOUNCEXY.js b/data_structures_correct/BOUNCEXY.js new file mode 100644 index 0000000..8562594 --- /dev/null +++ b/data_structures_correct/BOUNCEXY.js @@ -0,0 +1,58 @@ +function BOUNCEXY () { + + BOUNCEXY.prototype.define = function BOUNCEXY() { + this.win = -1; + + this.imode = 1; + + this.clrs = [[1],[2]]; + + this.siz = [[1],[1]]; + + this.xmin = -5; + + this.xmax = 5; + + this.ymin = 0; + + this.ymax = 15; + + var model = scicos_model(); + model.sim=list(new ScilabString(["bouncexy"]),new ScilabDouble([4])); + model.in = new ScilabDouble([-1],[-1]); + model.in2 = new ScilabDouble([1],[1]); + model.intyp = new ScilabDouble([1],[1]); + model.evtin = new ScilabDouble([1]); + + + this.z = []; + + for(var i = 0;i