-
... 0, 4@0 ); SmoothButton(comp, 50@14 ) .label_([ "show all", "hide all" ]) .hiliteColor_( Color.clear ) .border_(1) .radius_(2) .canFocus_(false) .action_({ |bt| switch( bt.value, 1, { this.expandAll }, 0, { this.collapseAll } ); }); SmoothBu ...
-
... 0), ControlSpec (0.0,5.0)); a.drawAxis_( true ).drawMethod_( \fillOval ) .symbolColor_( Color .blue(0.5, 0.5)).symbolSize_(5) ) bilinearInterpolate return y values for evenly spaced intervals along x (eg. steady time increments) whereas int ...
-
... parent bounds ... args . writeName write the name of the object as a label. the color of the name label is different if the object has a path (was loaded from disk) Arguments: layout . viewDidClose . keyDownResponder . saveConsole standard ...
-
... (); The vertical clicking position equals velocity, which is visualized by the color of the key (amount of red). If the mouse is moved out of the key's area while pressed, the note will hold until clicked again. downAction, upAction these ...
-
... r.center, radius: 0.8 ); ~camrep =Camera2DRepresentation( ~gameloop.repManager, color: Color.white ).shape_(1); ~camera.attach(~camrep); ) ⧉ ✔ Focus the viusalisation window by clicking on it and use the left/right arrows to rotate and fron ...
-
... SC2DTabletSlider(window, Rect(10,10,420, 350)).resize_(5); }; view.background = Color.white; view.mouseUpAction = {arg view, x, y, pressure, tiltx, tilty, deviceID, buttonNumber, clickCount, absoluteZ, rotation; controllers[0].setAll([x, y] ...
-
... er2D; o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.fillColor= Color.grey(o.state[\cell]*0.85+0.15, 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... y= RedVector2D.newFrom(w.mouse/([width, height])-0.5); }); //--render Pen.strokeColor= Color.white; sys.do{|o| //iterate all particles Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); } )
-
... er2D; o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.fillColor= Color.grey(o.state[\cell]*0.85+0.15, 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... y= RedVector2D.newFrom(w.mouse/([width, height])-0.5); }); //--render Pen.strokeColor= Color.white; sys.do{|o| //iterate all particles Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); } )