-
Pen: Filter: Description Class methods Construct path moveTo lineTo line curveTo quadCurveTo arcTo addArc addWedge addAnnularWedge addRect addOval Draw the path stroke fill draw fillStroke Construct and draw strokeRect fillRect strokeOval f ...
-
SCPen draw on a SCWindow Inherits from: Object A class which allows you to draw on a SCWindow . It has no instance methods. The following methods must be called within an SCWindow-drawHook or a SCUserView-drawFunc function, and will only be ...
-
... ct ? (32@32)).asRect; ^this.drawFuncs.at(name).value( rect, *more ); // returns pen function } *initClass{ \DrawIcon.asClass.notNil.if{ Class.initClassTree(DrawIcon); this.drawFuncs.keysValuesDo{|k,v| DrawIcon.drawFuncs.put(k,v); } }; light ...
-
... ints = 7.collect { |i| Polar(center.y, 2pi * (i/6) + angle).asPoint + center }; Pen.fillColor = hexColor; Pen.moveTo(hexPoints.last); hexPoints.do(Pen.lineTo(_)); Pen.fill; if( pressed ) { Pen.width = 4; Pen.strokeColor_(hiliteColor); Pen.a ...
-
// wslib 2006 // // bank of iconographic Pen-functions DrawIcon { classvar <drawFuncs; *new { |name, rect ... more| rect = (rect ? (32@32)).asRect; ^drawFuncs[ name ].value( rect, *more ); // returns pen function } *symbolArgs { |name, rect ...
-
... rr2; // draw current force as ring segment + arrow var drawCurrent = { |curr=0| Pen.color = if (curr > 0, colorUp, colorDown); Pen.addAnnularWedge(0@0, 16, 20, pi, curr * 2pi); Pen.fill; // plus arrow tip triangle Pen.rotate(curr * 2pi + pi ...
-
... 1: lines, 2: points, 3: none, 4: hi-res lines scale = pixelScale.asArray.mean; Pen.use({ // draw contents Pen.scale( 1, -1 ); //// this points = this.positions.collect(_.asPoint); controls = if( this.respondsTo( \controls ) ) { this.contro ...
-
... 2006 // 1st step to SwingOsc compat :: 03/2008 // - no rounded rects yet: all + Pen { *roundedRect { |rect, radius| // radius can be array for 4 corners var points, lastPoint; radius = radius ?? { rect.width.min( rect.height ) / 2; }; if( r ...
-
... ewRect.right ); tempos = tempoMap.bpmsBetween( viewRect.left, viewRect.right ); Pen.color = Color.gray.alpha_(0.25); if( viewRect.width < (this.view.bounds.width/100) ) { Pen.use({ if( GUI.id == \cocoa ) { Pen.width = pixelScale.x / 2; Pen. ...
-
... ewRect.right ); tempos = tempoMap.bpmsBetween( viewRect.left, viewRect.right ); Pen.color = Color.gray.alpha_(0.25); if( viewRect.width < (this.view.bounds.width/100) ) { Pen.use({ if( GUI.id == \cocoa ) { Pen.width = pixelScale.x / 2; Pen. ...