-
... bj.gravityForce(rep).neg); obj.update; world.contain(obj); //--render Pen.strokeColor= Color.green; Pen.strokeRect(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.d ...
-
... "); a.get( "density"); b.get("position") // b.set(\size, [1, 1, 0.01] ); b.set(\color, [0.8, 0.9, 0.1] ); c = d.createConstraint( "fixed", b, d.world ) d.collide_( true ); d.gravity_( 0, 0, -1 ); a.get( "position", 100 ); a.addAction( \posi ...
-
... ([~leftObj.loc[0], ~rightObj.loc[0]]); //store x positions //--render Pen.strokeColor= Color.red; Pen.line(~leftObj.loc.asPoint, leftWall.loc.asPoint); Pen.line(~rightObj.loc.asPoint, rightWall.loc.asPoint); Pen.stroke; Pen.strokeColor= Col ...
-
... ([~leftObj.loc[0], ~rightObj.loc[0]]); //store x positions //--render Pen.strokeColor= Color.red; Pen.line(~leftObj.loc.asPoint, leftWall.loc.asPoint); Pen.line(~rightObj.loc.asPoint, rightWall.loc.asPoint); Pen.stroke; Pen.strokeColor= Col ...
-
... eam.all } } TreeSnapshotView : Singleton { classvar okayIcon, warningIcon, groupColor, groupOutline, font; var <view, <viewMap, <viewsInUse, currentSnapshot, collapse=false, autoUpdateRoutine, autoUpdate=true, <ignore, lastValidation; *init ...
-
... obj.viscosityForce(vv)); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.yellow; Pen.fillRect(visc); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.close}); )
-
... obj.viscosityForce(vv)); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.yellow; Pen.fillRect(visc); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.close}); )
-
... ); window.view.decorator = FlowLayout( window.view.bounds ); window.background_(Color.fromHexString("#282828")); window.onClose = { this.clear; }; } setCmdPeriodActions { CmdPeriod.add({ AppClock.sched(0.1, { this.cmdPeriodAction; }); }); } ...
-
... ).round); g.fontMid = Font(g.fontName, (51 * g.screenScale).round); g.butGrey = Color.grey(0.3, 0.3); g.butGreen = Color.green(1, 0.7); // make nameViews bigger and better g.tuneNameView = { |q, obj| if (obj.respondsTo(\nameView)) { // fixe ...
-
... stance methods Interaction action mouseDownAction Graphical settings blink blinkColor blinkFontColor blinkTime string fontRatio stringRatio maxFontSize orientation svg svgRatio free Internal Methods draw resizeSVG Inherited instance methods ...