-
... io = 0.125, <>minNumLines = 5, <>lineHeight; var <>keepFront = true; // if GUI opens in score, keep to front var <>keepCursorCentered = true; var currentEventArray, updateCache, viewWidth, viewHeight, scoreDuration, updateFunc; *new { |clot ...
-
... views = this.makeUnitView( scrollView, unit, i, labelWidth, width ); unit.addDependant( unitInitFunc ); header.onClose_({ unit.removeDependant( unitInitFunc ); views[ \ctrl ].remove; }); views; }); } prScanForBus { |array, bus = 0| var neg ...
-
//some pendulums drifting and coming to a halt ( var width= 640, height= 480, w, wgrav, world, ypos; //--world w= RedWindow("pendulum test5", Rect(128, 64, width, height)).front; w.clearOnRefresh= false; wgrav= RedVector2D[0, 0]; world= Red ...
-
... bounds.width )) @ (array[1].linlin(range.neg,range,bounds.height,0,\none)); }); Pen.color = Color.gray(0.2).alpha_(0.5); Pen.strokeRect( bounds.insetBy(-1,-1) ); Pen.addRect( bounds ).clip; Pen.color = Color.gray(0.2).alpha_(0.125); hlines. ...
-
... ace(w, bounds); } initParaSpace { arg w, argbounds; var a, b, rect, relX, relY, pen; bounds = argbounds ? Rect(20, 20, 400, 200); bounds = Rect(bounds.left + 0.5, bounds.top + 0.5, bounds.width, bounds.height); if((win= w).isNil, { win = GU ...
-
... super.drawBackground(super.backgroundColor); // Draw beat if(thisBeat != -1) { Pen.fillColor_(super.beatColor); if(super.orientation == \horizontal) { Pen.fillRect( Rect( super.interactionRect.left + (thisBeat * (super.interactionRect.widt ...
-
//objects shoot out off each other. with friction and world damping to compensate. ( var width= 300, height= 300, w, wgrav, world, n= 18; //--world w= RedWindow("bounce test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0. ...
-
... - ( 2 + 40 + (4 + 40 + 4 + 40) ), 1, 42, 12 ) ) .label_( "udefs" ) .toolTip_( "open Udefs window.\n\nYou can drag Udefs to the chain from there or open" + "their corresponding code files." ) .radius_( 2 ) .action_({ UdefsGUI(); }).resize_(3 ...
-
... us * (2/9), angle ); backCenter = center + Polar( radius, angle + pi ).asPoint; Pen.moveTo( backCenter ); Pen.lineTo( backCenter + Polar( radius * width, angle + 1.5pi ).asPoint ); Pen.lineTo( center + Polar( radius, angle ).asPoint ); Pen. ...
-
... el= obj.vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.red; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.close}); ...