-
... % \n" // .postf(bounds, center, myscaleW.round(0.001), myscaleH.round(0.001)); Pen.scale(myscaleW, myscaleH); if ([\full, \touch, \binary, \binMove, \off].includes(NTMI.nUFO.mode)) { padCenters = [ // left side - top, midtop, midbottom, bo ...
-
... dist); Point(v[0], v[1])*size; }; } draw {|dotSize= 5| renderedPoints.do{|p, i| Pen.fillOval(Rect.aboutPoint(p, vectors[i][2]+1*dotSize, vectors[i][2]+1*dotSize)); }; } drawOutlines { outlines.do{|o| Pen.line(renderedPoints[o[0]], renderedP ...
-
... lectChildren, levels, countSize; var view, bounds; var updater, updateFunc; var pen, font; pen = GUI.current.pen; font = Font.sansSerif(10); view = UserView.new(parent, Rect(0,0,400,400)); view.drawFunc = { var xtabs = 0, ytabs = 0, drawFun ...
-
... .frame / 60 * pi).abs ); }; // super.drawFrame "override hack" super.drawFrame; Pen.fillColor_(thisCurrentBackgroundColor); Pen.fillRect(super.interactionRect); Pen.fillColor_(Color.red); Pen.strokeColor_(Color.white); Pen.width_(symbolSize ...
-
... 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( \ ...
-
... .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 ...
-
... 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 ...