-
// curve with 2 control points drawing // wslib 2006 + Pen { *addCurve { |start, c1, c2, end, div=10| c2 = c2 ? c1; Pen.lineTo( start ); (div-1).do({ |i| var x,y; x = [start.x, end.x].splineIntFunction( (i+1) / div, c1.x, c2.x ); y = [start ...
-
... erh,centerv; centerh = drawRect.center.x; centerv = drawRect.center.y; horz.if{ Pen.fillColor_(color1); Pen.moveTo(drawRect.right@centerv); Pen.lineTo( (centerh+gap)@drawRect.bottom); Pen.lineTo( (centerh+gap)@drawRect.top); Pen.moveTo(draw ...
-
... be compiled // BEFORE we can compile this particular class Class.initClassTree(Pen); Class.initClassTree(GMStyle); } // Custom init function, to be called by subclasses // when they init init { this.style_(GMStyle.default); } style { ^this ...
-
... - ( margin * 2 ), window_size[1] - ( margin * 2 ) )); slider.drawFunc = { Pen.width = stroke_size; Pen.addRect( Rect(0,0, slider.bounds.width,slider.bounds.height) ); Pen.fillAxialGradient( slider.bounds.leftBottom, slider.bounds. ...
-
... var in = this.input; if(bounds!=view.bounds) { this.calcConsts(view.bounds) }; Pen.width = 1; switch(mode) { \round } { Pen.fillColor = lineColor; Pen.fillRect(or); Pen.fillColor = loColor; Pen.addAnnularWedge(or.center, 0, radius, -1.25pi ...
-
... //uncomment framerate display in the two lines below to gain some speed Pen.color= Color.white; Pen.stringAtPoint(""++u.frameRate, Point(10, 10)); //-- b.getn(0, b.numFrames-1, {|data| arr= data}); if(cnt==0, ...
-
SynthDefGraph { var <>def,uv,pen; var font,black,h,w; *new { arg def,parent,bounds; ^super.new.def_(def).gui(parent,bounds) } gui { arg parent,bounds; if(parent.notNil,{ parent = parent.asFlowView(bounds); uv = UserView(parent,bounds ?? {pa ...
-
... usButton; this.prDrawNextButton; this.prDrawLastButton; // Write the time stamp Pen.stringAtPoint( currentTimeStamp, Point( super.interactionRect.left + 5, super.interactionRect.top ), thisFontInstance.deepCopy.size_( min( 12, super.interac ...
-
... unds.width, this.view.bounds.height); // frame Color.black.alpha_(0.4).set; GUI.pen.width = 2; GUI.pen.moveTo(bounds.left @ (bounds.top + bounds.height)); GUI.pen.lineTo(bounds.left @ bounds.top); GUI.pen.lineTo((bounds.left + bounds.width) ...
-
... \play ] ) { backColor = backColor.blend( Color.black, 0.25 ); }; backColor.set; Pen.addArc( view.bounds.center, view.bounds.height / 2, 0, 2pi); Pen.fill; Color.black.alpha_(0.9).set; Pen.width = 3; Pen.addArc( view.bounds.center, view.boun ...