-
... by * holding a UserView internally. This view is created upon instantiation * depending on the current GUI scheme. * * Any unknown calls are automatically forwarded to it, and event hooks are * patched to consistently provide the base view ...
-
... urtle implementation. t = Turtle .new ( t.init; t.to(100@100); t.turn(0.5pi); t.penDown; t.forward(100); t.penUp; t.turn(-0.5pi); t.forward(100); t.penDown; t.forward(100); ) w = SCWindow .new.front ( w.drawHook = { Pen .use { t.stroke; Col ...
-
... bounds.width )) @ (array[1].linlin(range.neg,range,bounds.height,0,\none)); }); Pen.color_( Color.white.alpha_(0.25) ); Pen.roundedRect( bounds, [6,6,0,0] ).fill; Pen.color = Color.gray(0.2).alpha_(0.5); //Pen.strokeRect( bounds.insetBy(-1, ...
-
... soundfield player - for auditioning the soundfield transforms var <audition, >iOpenedAudition = true, <pwPlaying = false, <pwAzim = 0; *new { | numDisplayPoints = 12 | ^super.newCopyArgs(numDisplayPoints).prInit; } prInit { var directions; ...
-
... , ratioSl, d, indexSl; var viewWidth = 500; var buf, synth; f = SoundFile.openRead(p); f.seek(86965); f.readData(d = Signal.newClear((f.sampleRate * 0.333).roundUp)); f.close; w = Window("granular windows", Rect(800, 200, viewWid ...
-
... |x| x.notNil}; }.flat; syns= {Synth(\imp2)}.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.lineTo(spr.target.loc.as ...
-
... |x| x.notNil}; }.flat; syns= {Synth(\imp2)}.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.lineTo(spr.target.loc.as ...
-
... ource.gui(layout ?? {Window(~name.value, bounds).front}, bounds) }, draw: { arg pen, bounds, style; pen.color = style['fontColor']; pen.font = style['font']; if(style['center'], { pen.stringCenteredIn(~name.value, bounds) }, { pen.stringLef ...
-
... i| i/(boxWidth-1)}); var argStr= "("++"".ccatList(arguments).copyToEnd(2)++")"; Pen.use{ Pen.translate(pos.x, pos.y); Pen.fillColor= Color.white; //box background colour Pen.fillRect(rect); Pen.strokeColor= Color.black; //box border colour ...
-
... Rock(world, RedVector2D[width.rand, height].rand)}.dup(rocks); //--loop w.draw{ Pen.width= 1; world.objects.do{|o, i| //iterate all objects in this world o.addForce(o.world.gravity); //add gravity world.objects.copyToEnd(i+1).do{|oo| o.coll ...