-
... e }.dup(n); synths= {Synth("fm3Dtest", [\amp, 0.5/n])}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(0.5); Pen.strokeRect(Rect.aboutRedVector3D(RedVector[width/2, height/2, depth], width/2, width, height, depth, ss, ff)); Pen.strokeC ...
-
... SGUI.report(win); SGUI.adapt(win); backgroundImage= Image(200, 200).draw({|img| Pen.fillColor= palette.highlight.complementary; Pen.translate(img.width*0.5, img.height*0.5); 500.do{Pen.addRect(Rect(20.gauss(20), 20.gauss(20), 1, 1))}; Pen.f ...
-
... width; height = me.bounds.height; q.morph.updatedContacts.keysValuesDo({|k, me| Pen.color = contactColor; Pen.addOval(Rect.aboutPoint(([me.x, me.y] * [width, height]).asPoint, me.force * 1000, me.force * 1000)); Pen.fill; Pen.color = avgCol ...
-
... ontSize ? 36) }; u.background_(ev.bg ?? { Color.rand(0.80, 0.9).alpha_(0.5) }); Pen.font_(font); Pen.translate(u.bounds.width / 2, u.bounds.height / 2); Pen.scale(scaleFactor, scaleFactor); ev.pos !? { Pen.translate(ev.pos.x, ev.pos.y) }; P ...
-
... Nil, { orbit.set(key, val); }); }) }; } // Function to draw the grid drawGrid { Pen.color = Color.new255(150, 150, 150); Pen.width = 0.5; // Draw vertical grid lines (Input Level) (0..height).do { |x| if (x % (height / 10) == 0, {Pen.line(P ...
-
... a*2]; line.update; //--render line.render(1, 100); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.strokeColor= Color.white; line.drawOutlines; Pen.fillColor= Color.white; line.draw(10); //dotSize }; w.play; CmdPeriod ...
-
... a*2]; line.update; //--render line.render(1, 100); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.strokeColor= Color.white; line.drawOutlines; Pen.fillColor= Color.white; line.draw(10); //dotSize }; w.play; CmdPeriod ...
-
... n( "Export selection as new SoundFile...", { ULib.savePanel({ |path| soundFile.openRead( soundFile.path ); soundFile.uExportSelection( path, startFrame: startFrame, numFrames: numFrames ); soundFile.close; }, {}, soundFile.path.dirname +/+ ...
-
... .drawFunc = { |view| var jumpwidth = view.bounds.width / (~numsprings-1); Pen.fillColor = Color.black; Pen.strokeColor = Color.black; ~springs.do({ |spring, i| var height = (spring/~max*view.bounds.height/2) + (view.bounds.h ...
-
... 2]; plane.update; //--render plane.render(1, 300); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.strokeColor= Color.white; plane.drawOutlines; Pen.fillColor= Color.white; plane.draw(10); //dotSize }; w.play; CmdPeri ...