-
... olors.add(Color.red(rrand(0.0, 1), rrand(0.4, 0.8))) }; makeLine = { arg index; Pen.color = Color.black; Pen.fillOval(Rect(currentForLine.x - 1, currentForLine.y + 3, width: 2, height: 8 )); Pen.stringAtPoint( index.asString, currentForLine ...
-
... {|x| x.notNil}; }.flat; syns= {Synth(\imp)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.strokeColor= Color.white; sprs.do{|spr| spr.update; //--render springs Pen.moveTo(spr.object.loc.asPoint); Pen.quadCurveTo(spr.target.l ...
-
... {|x| x.notNil}; }.flat; syns= {Synth(\imp)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.strokeColor= Color.white; sprs.do{|spr| spr.update; //--render springs Pen.moveTo(spr.object.loc.asPoint); Pen.quadCurveTo(spr.target.l ...
-
... lider setup v_slider.background_( Color.black ); v_slider.drawFunc_( { | view | Pen.width = 1; if (margin.notNil, { (view.bounds.width - (margin * 2)).do( { |index| Pen.strokeColor_( this.hsvToColor( [ index.linlin( 0, (view.bounds.width - ...
-
... Color = Color.black; win.drawHook = { var pt; pt = Point(0, height/2); Pen.color_(sampColor) .moveTo(pt); (1..sampPts).do { |x| Pen.moveTo(pt); pt = Point(x * (width / sampPts), sin(x * freq / sampPts * 2pi).linlin(-1, 1 ...
-
... var string_rect; var string_color; if( current_state == index, { Pen.fillColor_( state[ 2 ] ) }, { Pen.fillColor_( state[ 5 ] ) } ); if( orientation == \horizontal, { Pen.fillRect( Rect( m ...
-
... ; } drawFocusRing { |rect, radius| if( this.hasFocus ) { if( GUI.id === \qt ) { Pen.use({ Pen.width = 1.5; Pen.color = Color.white.alpha_(0.75); Pen.roundedRect( rect.insetBy(1,1), radius-1 ).stroke; Pen.color = focusColor ?? { Color.blue.h ...
-
... b0 = v.bounds.moveTo( 0,0 ); Color.black.set; Pen.fillRect( b0 ); Pen.width = 1; do( numSteps, { |i| blend( c1,c2, i*cstep ).set; ...
-
... | bounds = theWindow.bounds; //userView.bounds = bounds.copy.top_(0).left_(0); Pen.color = Color.black; nWhiteKeys.do( { |i| var position, keyWidth; keyWidth = bounds.width / nWhiteKeys; position = keyWidth * i; if( activeKeys.includes( i ...
-
... eight, width; height = this.bounds.height; width = this.bounds.width.asInteger; Pen.moveTo( 0 @ history[pos].linlin(0,1,height,0) ); (history.size).do({ |item, i| Pen.lineTo( (i+1) @ history.wrapAt(pos+i).linlin(0,1,height,0) ); }); Pen.lin ...