-
... //draw next frame board.do({ arg row, j; row.do({ arg val, i; Pen.fillColor_(Color.gray( //positive numbers are light gray (snake body) //0s are dark grey (game board background) (val>0).asInteger*0.6+0.1 ...
-
... }}.do{|s| physics.removeSpring(s)}; physics.removeParticle(p); }; physics.tick; Pen.fillColor= Color.green(0.6, 0.3); physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass*(1-(p.age/maxAge)), p.mass* ...
-
... }}.do{|s| physics.removeSpring(s)}; physics.removeParticle(p); }; physics.tick; Pen.fillColor= Color.green(0.6, 0.3); physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass*(1-(p.age/maxAge)), p.mass* ...
-
... laysOnBus({chan.source.bus}) ) ]; MxUnit(chan, inlets, outlets); }, draw: { arg pen, bounds, style; ~source.fader.draw(pen, bounds, style) } ));
-
... ( path * size ).flop .collect({ |item| item[0]@item[1] }); // points color.set; Pen.arrow( path[1], path[0] ); Pen.stroke; color.alpha_(0.33).set; Pen.moveTo( path[2] ); Pen.lineTo( path[3] ); Pen.stroke; ^path; } plotSmooth { |speakerConf ...
-
... an either Rand or Brown here // the extra + button in the nicole/freq section opens a gui to creat tuned clouds according to probabilities for each note //some symbols have been used from the Mac character viewer - yet to find out if th ...
-
... == ~vhighest) && (h == ~hhighest), { //highest value will be colored red Pen.color=Color.red; Pen.addRect(Rect(h*z, v*z, z, z)); Pen.fill; }); if (( v == ~vlowest) && (h == ~hlowest), { //lowest value will be c ...
-
... e changes u.background_(Color.black); u.animate_(true); u.drawFunc = { |u| Pen.strokeColor = Color.white; Pen.moveTo( Point(0, a[0]) ); a[1..].do{ |value, index| Pen.lineTo( Point(index+1, value) ) }; Pen.stroke; }; // call o ...
-
... dict[\hiRect] = dict[\bounds00].copy .width_(dict[\width] * 0.5); } drawLabel { Pen.stringLeftJustIn( dict[\label], dict[\boundsLabel], dict[\font], dict[\labelCol] ); } adjustFont { |str, font, rect| var drawSize = QtGUI.stringBounds(str, ...
-
... |str, i| numAppearance = numbers[i]; val = countSpec.unmap(numAppearance); GUI.pen.font = GUI.font.new(fontName, (sizeSpec.map(val)).asInteger); GUI .pen.color = Color .red(colorSpec.map(val), alphaSpec.map(val)); GUI.pen.stringCenteredIn( ...