-
... rt, end| ^this.class.new( *points.copyRange( start, end ) ) } drawFunction { ^{ Pen.moveTo( points[0] ); points[1..].do({ |point| Pen.lineTo(point) }); } } drawFunctionJ { ^{ JPen.moveTo( points[0] ); points[1..].do({ |point| JPen.lineTo(po ...
-
... th+50)).front;\ window.view.background_( Color .black);\ window.drawHook = \\ \ Pen .use \\ Pen .translate(10, 10);\ colors.do\ |color, i| \ color.set;\ Pen .fillRect( Rect (pad/2, 0, i_width, i_width));\ /*Pen.addAnnularWedge(Point(*((pad+ ...
-
... { 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 ...
-
... { 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 ...
-
... { 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} { ...