-
... u.clearOnRefresh = false; u.drawFunc = { var width = u.bounds.width; // Pen.fontColor Pen.stringAtPoint("Click on a zone to pause or resume the oscillator", Point(0,0)); Pen.fillColor = Color(1, 1, 1, 0.1); Pen.fillRect(u.b ...
-
... ); } fill { |rect, tileMode=1, alpha=1.0, fromRect, operation = 'sourceOver'| ^Pen.use{ Pen.clip; this.drawBackground( rect, tileMode, alpha, fromRect, operation ); }; } penFill { |rect, alpha=1.0, fromRect, tileMode=1, operation = 'source ...
-
//double pendulum //https://www.myphysicslab.com/pendulum/double-pendulum-en.html ( var width= 300, height= 300, w, wgrav, world, ploc, angularAccel1, angularAccel2; //--world w= RedWindow("double pendulum", Rect(128, 64, width, height)).fr ...
-
//double pendulum //https://www.myphysicslab.com/pendulum/double-pendulum-en.html ( var width= 300, height= 300, w, wgrav, world, ploc, angularAccel1, angularAccel2; //--world w= RedWindow("double pendulum", Rect(128, 64, width, height)).fr ...
-
... ************* stereo or mono. this should be set from ixiQuarks main window on open buffNum = 8; buffers = Array.fill(buffNum, {0}); // buffers buffLengths = Array.fill(buffNum, {1}); frozenBuffers = Array.fill(buffNum, {0}); skipLengths = ...
-
... iew = nUFOView; nUFOView.drawFunc_({ |uv| var bounds = uv.bounds.extent.asRect; Pen.addRect(bounds).color_(Color.white).stroke; Pen.addRect(bounds.copy.width_(bounds.width * (NTMI.nUFO.bat.percent ? 0 * 0.01))); Pen.color_(Color.green(0.75, ...
-
... radius ); } asRect { ^Rect( this.left, this.top, this.width, this.height ); } asPenFunction { ^{ Pen.roundedRect( this.asRect, radius ); } } stroke { |penClass| penClass = penClass ?? { GUI.pen }; this.asPenFunction( penClass ).value; penCl ...
-
... 2){TempoClock.default.tempo = 60/60;}; }); u.drawFunc = { Pen.fillColor = Color.red; Pen.color = Color.white; pt.x=mx; pt.y=my; 100.do{|i| Pen.moveTo(pt); pt.x = sin(u.frame*0.1. ...
-
... w.drawFunc= { var colors= {|i| Color.hsv(i/a.k, 1, 1)}.dup(a.k); b.do{|vec, i| Pen.fillColor= colors[a.classifications[i]]; Pen.fillRect(Rect.aboutRedVector2D(vec, 1)); }; Pen.fillColor= Color.white; a.centroids.do{|cent, i| Pen.strokeColo ...
-
... endToAll( '/endTrack' , participation.forum.myName);\ \);\ \ w.drawHook_\\ GUI .pen.use \ \ GUI .pen.width = 1;\ GUI .pen.beginPath;\ \ tmppoints.do\ |points| \ points.do \ |p, i| \ if(i == 0)\\ GUI .pen.moveTo(p);\ \\\ GUI .pen.lineTo(p);\ ...