-
... eight, width; height = this.bounds.height; width = this.bounds.width.asInteger; Pen.moveTo( 0 @ history[pos].linlin(0,1,height,0) ); (history.size).do({ |item, i| Pen.lineTo( (i+1) @ history.wrapAt(pos+i).linlin(0,1,height,0) ); }); Pen.lin ...
-
... oints pts = this.getPoints( bounds ); ////// DRAWING /////// // draw background Pen.color_( Color.white.alpha_(0.25) ); Pen.roundedRect( bounds, 2 ).fill; // make cliprect Pen.roundedRect( bounds.insetBy(0,0), 2 ).clip; // draw gridlines Pe ...
-
... oints pts = this.getPoints( bounds ); ////// DRAWING /////// // draw background Pen.color_( Color.white.alpha_(0.25) ); Pen.roundedRect( bounds, 2 ).fill; // make cliprect Pen.roundedRect( bounds.insetBy(0,0), 2 ).clip; // draw gridlines Pe ...
-
... ius; var baseRect, knobWidth; var center, strOri; var bnds; // used with string Pen.use { rect = this.drawBounds; drawBounds = rect.insetBy( border, border ); if( orientation == \h ) { drawBounds = Rect( drawBounds.top, drawBounds.left, dra ...
-
... le Touch/Move", "'.' to stop", ].do { |string, i| var hiunit = extent.y * 0.13; Pen.stringCenteredIn(string, bounds.copy.top_(hiunit * i).height_(hiunit), font, black ) }; if (q.inph.mode == \touch) { q.mtp.pads.do { |padc, i| var rect = Pe ...
-
... o({ |i| chanPlotter[i].value_(chanArray[i]); }); } drawOnsets { win.drawHook_({ Pen.width = 1; onsetsList.do({arg point, i; GUI.pen.color = Color.red.alpha_(0.2); GUI.pen.fillOval( Rect(point.x-3.5, point.y-3.5, 8, 8)); GUI.pen.color = Colo ...
-
... 0), (height*0.5).rand.round(50)+(height*0.4)]); }.dup(nRocks); //--loop w.draw{ Pen.strokeColor= Color.grey(0.7, 0.9); objs.do{|o, i| o.addForce(o.world.gravity); //add gravity objs.copyToEnd(i+1).do{|oo| o.collide(oo)}; o.update; //object ...
-
... mple"); } bounds { ^Rect(0,0,this.width, this.height); } drawAtPoint { |aPoint| Pen.use { Pen.translate(aPoint.x, this.height+aPoint.y); Pen.scale(1.0, -1.0); scns_obj.invoke("draw"); } } drawInRect { |argRect| Pen.use { Pen.translate(0, ar ...
-
... +0.07; o.size= nl*15; o.addForce(force); o.update; world.contain(o); //--render Pen.fillColor= dict.color; Pen.fillOval(Rect.aboutRedObject2D(o)); Pen.stringAtPoint(dict.name, o.loc.asPoint+Point(-10, 10), font.size_(o.size)); Pen.strokeCol ...
-
... e tab positions and orders focusHistory, <window, <context, // thu GUI COntext <pen, >closeIcon, >detachIcon, labelAlign=\auto, left = 0, // probably obsolete top = 0 // probably obsolete ; *new{ arg parent, bounds; ^super.new.init(parent, ...