-
... ar x, y, r; x = dict.at( \x ); y = dict.at( \y ); r = dict.at( \r )*(1.0-perc); Pen .fillColor = Color .blue; Pen .strokeColor = Color .red; Pen .addArc(x@y, r, 0.0, 2pi); Pen .fill; }; circle = { arg perc, dict; var x, y, r; x = dict.at( \ ...
-
... etup h_slider.background_( Color.black ); h_slider.drawFunc_( { | view | Pen.width = 1; ( view.bounds.height - ( margin * 2 ) ).do( { | index | Pen.strokeColor_( hsv_to_color.value( [ index.linlin( 0, ...
-
... .sum; physics.tick; if(physics.numberOfParticles>1, { updateCentroid.value; }); Pen.color= Color.black; Pen.width= 2; Pen.stringAtPoint(""++physics.numberOfParticles+"PARTICLES", Point(10, 20)); Pen.stringAtPoint(""++frameRate.round(0.1)+"F ...
-
... .sum; physics.tick; if(physics.numberOfParticles>1, { updateCentroid.value; }); Pen.color= Color.black; Pen.width= 2; Pen.stringAtPoint(""++physics.numberOfParticles+"PARTICLES", Point(10, 20)); Pen.stringAtPoint(""++frameRate.round(0.1)+"F ...
-
... lineColor = Color.green.alpha_(0.5); // for retro style if( ypos == 0 ) { Pen.fillColor = Color.black; Pen.fillRect(view.bounds) }; // clear on new begin c.getn(0, numFreqs-1, { |v| d = v }); // get mag buffer data Pen.stroke ...
-
... mns, rows); } initBoxGrid { arg w, argbounds, argcolumns, argrows; var p, rect, pen; lazyRefreshFunc = { this.refresh; refreshDeferred = false; }; bounds = argbounds ? Rect(20, 20, 400, 200); bounds = Rect(bounds.left , bounds.top , bounds. ...
-
... s.do({ |value| var yIndex = thisEntries.detectIndex({ |item| item == value; }); Pen.addRect( Rect( super.interactionRect.left + (caseSize.x * xIndex) + (ratioOffset / 2) + (super.outlineSize / 2), super.interactionRect.bottom - (caseSize.y ...
-
... set = 2; var arrowRadius = (relBounds.width.min(relBounds.height) / 2) - inset; Pen.roundedRect( relBounds, radius); background.penFill( relBounds ); Pen.use({ Pen.translate( *relBounds.center.asArray ); Pen.color = foreground; 4.do({ |i| i ...
-
... mouse input trg.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; }; objs.do{|obj| obj.addForce(world.gravity); obj.update; wor ...
-
... mouse input trg.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; }; objs.do{|obj| obj.addForce(world.gravity); obj.update; wor ...