-
... { innerRect = scaledRect.insetBy(0.5,0.5); //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect); Pen.stroke; }; //event is playing if( event.isPlaying ) { Pen.width = 3; Pen.color = Col ...
-
... + actPoint; points = points.add(newPoint); isDraw = isDraw.add(isDraw.last); } penUp{ points = points.add(points.last); isDraw = isDraw.add(false); } penDown{ points = points.add(points.last); isDraw = isDraw.add(true); } stroke { points.d ...
-
... oUV.frameRate }; ) // now tell it what to draw: q.draw.demoUV.drawFunc = { |uv| Pen.stringCenteredIn( "q.draw.demoUV.drawFunc runs", uv.bounds, Font("Futura", 24), Color.white ); }; // make sure history has a line History.enter("// this is ...
-
... 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 ...
-
... tion = {}; this.mouseDownAction_({ var reset, time, times; // This will only happen on first click if(timeStamps.isNil) { timeStamps = List(0); timeStamps.add([ Date().hourStamp, SystemClock.seconds ]); thisAction.value(nil, timeStamps); ti ...
-
... on= {|v, x, y, m| mouse= Point(x, y); userView.refresh; }; userView.drawFunc= { Pen.width= width; Pen.strokeColor= strokeColor; if(pmouse.notNil, { if(pmouse==mouse, { Pen.addRect(Rect.aboutPoint(mouse, 0.5, 0.5)); }, { case {mod.isCtrl} { ...
-
... % \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 ...