From 21b0cfec8f414af816d198044d2dbf97dbebfb47 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 20 Jun 2018 15:58:03 +0530 Subject: start working on scicos_getvalue --- js/Misc/PAL_f.js | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'js/Misc') diff --git a/js/Misc/PAL_f.js b/js/Misc/PAL_f.js index 21ebba14..f27f6e8d 100644 --- a/js/Misc/PAL_f.js +++ b/js/Misc/PAL_f.js @@ -1,3 +1,30 @@ -Syntax error in input LexToken(SCICOS,'scicos',1,1009) /* autogenerated from "macros/Misc/PAL_f.sci" */ -None +function PAL_f() { +PAL_f.prototype.define = function PAL_f() { +scs=scicos_diagram(); +scs.props.title="Palette"; +model=scicos_model(); +model.sim="palette"; +model.in1=[]; +model.out=[]; +model.rpar=scs; +model.blocktype="h"; +model.dep_ut=[false,false]; +gr_i=[]; +x=standard_define([2,2],model,[],gr_i); +x.graphics.id=scs.props.title(1); +} +PAL_f.prototype.details = function PAL_f() { +} +PAL_f.prototype.get = function PAL_f() { +} +PAL_f.prototype.set = function PAL_f() { +[x,newparameters,needcompile,edited]=scicos(arg1.model.rpar); +arg1.graphics.id=x.props.title(1); +arg1.model.rpar=x; +x=arg1; +y=[]; +typ=[]; +%exit=resume(false) +} +} -- cgit