-
... os / selectionDelta) * bounds.width; // *bufferGlobalLimits[0] } drawplayhead { Pen.line( Point(playhead, bounds.top+1), Point(playhead, bounds.bottom) ); } updateLabel { label.bounds = Rect(canvasBounds.left+2, bounds.bottom-10, 100, 15) ; ...
-
//linked pendulums ( var width= 300, height= 300, w, wgrav, world, n= 5, ploc; //--world w= RedWindow("linked pendulums", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 2 ...
-
... @ (params.gainByIndex(ind).linlin(range.neg,range,bounds.height,0,\none)); }); Pen.color_( Color.white.alpha_(0.25) ); Pen.addRoundedRect( bounds, 6, 6 ).fill; Pen.color = Color.gray(0.2).alpha_(0.5); Pen.addRoundedRect( bounds.insetBy(0,0 ...
-
... i-1), world.objects.wrapAt(i+1)); }; world.objects.do{|o| o.update}; //--render Pen.width= 5; Pen.strokeColor= Color.black; Pen.fillColor= Color.white; world.objects.do{|o| var p, x, y; p= o.loc.asPoint; Pen.addOval(Rect.aboutPoint(p, o.siz ...
-
... te drag or a symbol like \isCntrl var <>background, <styles, <defaultStyle; var pen, boxWidth, boxHeight, boxBounds, font; var plus, mainInlets, mainOutlets, mainPlus; *new { arg mx, w, bounds; ^super.new.init(mx, w, bounds); } init { arg a ...
-
... e tab positions and orders focusHistory, <window, <context, // thu GUI COntext <pen, >closeIcon, >detachIcon, left = 0, // probably obsolete top = 0 // probably obsolete ; *new{ arg parent, bounds; ^super.new.init(parent, bounds); } init{ a ...
-
... r.notNil, { over.loc= w.mouse; }); sprs.do{|spr| spr.update; //--render springs Pen.strokeColor= Color.grey; Pen.line(spr.object.loc.asPoint, spr.target.loc.asPoint); Pen.stroke; }; world.objects.do{|obj, i| obj.addForce(world.gravity); //w ...
-
... initGrid { arg w, argbounds, argcolumns, argrows, argborder=false; var p, rect, pen; lazyRefreshFunc = { this.refresh; refreshDeferred = false; }; bounds = argbounds ? Rect(20, 20, 400, 200); bounds = Rect(bounds.left , bounds.top , bounds. ...
-
... s-1) or: { x > (numColumns-1) }){ ^false }; ^true } // draws the Matrix using a Pen // the result can be moved to another position by providing the parameters xOffset and yOffset draw { |xOffset=0, yOffset=0| array.do { |row, ri| row.do { | ...
-
... toggleRect = this.pr_calcToggleRect(orientation); rad = this.pr_calcRadius() ; Pen.use { // horizontal labelOffset=5; Pen.font = font; Pen.color_(labelColor); label.notNil.if{ this.drawLabel(orientation); }; label2.notNil.if{ this.drawLabe ...