-
... statusButton = GUI.button.new(mainView, Rect(0, 0, 80, 20)).states_([ ["idle", Color.new255(12, 9, 96), Color.new255(255, 178, 203)], ["RECORD", Color.new255(12, 9, 96), Color.new255(255, 39, 19)] ]) .value_(0) .action_({ |b| (b.value > 0) ...
-
... statusButton = GUI.button.new(mainView, Rect(0, 0, 80, 20)).states_([ ["idle", Color.new255(12, 9, 96), Color.new255(255, 178, 203)], ["RECORD", Color.new255(12, 9, 96), Color.new255(255, 39, 19)] ]) .value_(0) .action_({ |b| (b.value > 0) ...
-
... }; } applySmoothSkin { this.applySkin( ( extrude: false, border: 0, background: Color.white.alpha_(0.5), typingColor: Color.red(0.5).alpha_(0.75) ) ); } applyRoundSkin { this.applySkin( ( extrude: true, border: 2, background: Color.white, t ...
-
... ton(layout, this.model.instr.dotNotation, { this.model.instr.gui }).background_(Color.white).labelColor_(Color.black) } } InstrSpawnerGui : PatchGui { guiBody { arg layout; super.guiBody(layout); layout.startRow; CXLabel(layout, "delta patt ...
-
... con", Rect(100, 100, sideLength * 1.2, sideLength * 1.2)); w.view.background = Color(0.5,0.5,0.8); r = Rect(20, 20, sideLength, sideLength); c = [ -0.0625, 1.0625 ]; 8.do {|i| v = SCStaticText(w, r); v.background = Gradient( Colo ...
-
... rld.contain(obj); world.contain(obj2); world.contain(trg); //--render Pen.strokeColor= Color.grey; Pen.line(obj.loc.asPoint, trg.loc.asPoint); Pen.line(obj2.loc.asPoint, trg.loc.asPoint); Pen.stroke; Pen.fillColor= Color.red; Pen.fillOval(R ...
-
... rld.contain(obj); world.contain(obj2); world.contain(trg); //--render Pen.strokeColor= Color.grey; Pen.line(obj.loc.asPoint, trg.loc.asPoint); Pen.line(obj2.loc.asPoint, trg.loc.asPoint); Pen.stroke; Pen.fillColor= Color.red; Pen.fillOval(R ...
-
... de.org/1-1HR and a student wanted to do a 3D freq/spectrum plot over time. The colors are just for extra funkyness.... feel free to change it to standerd retro green and scale the freqs and magnitudes at will ;) /////////////////////////// ...
-
... Unit.fadeInCurve; }; Pen.use({ var values; Pen.roundedRect( rect, 2 ).clip; Pen.color = Color(1.0, 1.0, 1.0, 0.5); Pen.fillRect( rect ); values = (rect.width.asInteger + 1).collect({ |i| i.lincurve(0, rect.width, rect.bottom, rect.top, fade ...
-
... D[width, height, depth], wgrav, 20, 0.01); //dim,grav,maxvel,damp w.background= Color.white; //--objects obj= RedPendulum(world, RedVector3D[width*0.5, height*0.5, depth*0.5], nil, nil, 1, 100) //world,loc,vel,acc,mass,size .theta_(0).angul ...