-
... ) * 1.1); //curve var rhoToLength = bentRho * ((headRadius * 0.6) - halfWidth); Pen.push; Pen.translate(halfWidth, halfWidth); // background circle Pen.strokeColor = midGrey; Pen.width = fieldSize * 0.15; Pen.addOval(Rect.aboutPoint(Point(0 ...
-
... y| all = all.add(tmppoints.copy); tmppoints = []; v.refresh; }) .drawFunc_{|me| Pen.use { //Color.white.set; Pen.color = Color.white; Pen.fillRect(me.bounds.moveTo(0,0)); Pen.width = 1; Pen.color = Color.black; //Color.black.set; Pen.beginP ...
-
... strokeColor = Color.gray(0); var textColor = Color.gray(0.4); var extent = 40; Pen.strokeColor = Color.black; Pen.addRect(Rect(0, 0, me.bounds.width, me.bounds.height)); Pen.stroke; tServer.visibleObjs.do{|obj| Pen.use{ Pen.translate( obj. ...
-
... wBorder { var b, w, h; b = this.bounds.moveTo(0, 0); w = b.width; h = b.height; Pen.strokeColor = Color.grey(0.1, 0.3); Pen.line(0@h, 0@0); Pen.line(0@0, w@0); Pen.stroke(); Pen.strokeColor = Color.grey(0.5, 0.2); Pen.line(w@0, w@h); Pen.li ...
-
// 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 ...
-
... 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 ...
-
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 ...