-
... low{|s=2|s=s.min(2);^this.new(s+1,s)} *orange{|s=2|s=s.min(2);^this.new(s,s+1)} color{ if(this.red==0){ if(this.green==0){ ^[\black] }{ ^[\green,this.green]; } }{ if(this.green==0){ ^[\red,this.red]; }{ if(this.green==this.red){ ^[\amber,th ...
-
... paramGui.paramViews.do { |pv| if (highKeys.includes(pv.label)) { pv.background_(Color.green(0.8)) } { pv.background_(Color.new255(204, 216, 178, 127)) } } }; NTMI.mfx.skippa = SkipJack({ if (NTMI.mfx.prepop.item != NTMI.mfx.currDomain) { NT ...
-
... center = bounds.extent * 0.5; zone = CompositeView(parent, bounds) .background_(Color.grey(0.8, 0.5)); skin = GUI.skins.jit; nameView = StaticText(zone, Rect.aboutPoint(center, 30, 10)) // .string_(el.name) .align_(\center); buttons = 9.col ...
-
... center = bounds.extent * 0.5; zone = CompositeView(parent, bounds) .background_(Color.grey(0.8, 0.5)); skin = GUI.skins.jit; nameView = StaticText(zone, Rect.aboutPoint(center, 30, 10)) // .string_(el.name) .align_(\center); buttons = 9.col ...
-
... x).asSynthDef2.play(s, [\amp, 0])}; 0.5.wait; //--loop w.draw{ 4.do{|i| Pen.fillColor= Color.red(0.5, i+1/4); Pen.fillOval(Rect.aboutRedVector2D(w.mouse, 4-i/3*25)); }; world.objects.do{|o, i| var amp= 0; o.addForceWander2D; if(i==0, { o.ad ...
-
... x).asSynthDef2.play(s, [\amp, 0])}; 0.5.wait; //--loop w.draw{ 4.do{|i| Pen.fillColor= Color.red(0.5, i+1/4); Pen.fillOval(Rect.aboutRedVector2D(w.mouse, 4-i/3*25)); }; world.objects.do{|o, i| var amp= 0; o.addForceWander2D; if(i==0, { o.ad ...
-
... ropriate to your widget. Make sure to define value. var <>step, <value=0, <>leftColor, <>rightColor, <>thumbWidth=7; // (2) Set the viewClass to SCUserView *viewClass { ^SCUserView } // this ensures that SCUserView's primitive is called // ...
-
... vityForce(oo).neg); }); }); }; o.update; world.contain(o); //--render Pen.strokeColor= Color.grey(1-(o.mass/12)); Pen.strokeRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... vityForce(oo).neg); }); }); }; o.update; world.contain(o); //--render Pen.strokeColor= Color.grey(1-(o.mass/12)); Pen.strokeRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... = comp ?? { comp = CompositeView(parent, Rect(0,0, width, height)) .background_(Color.gray(0.9)); comp.decorator = FlowLayout(comp.bounds, gap, gap); comp; }; if (top) { this.topLine(comp) }; this.makeBoxes(comp); if (slide) { this.makeSlid ...