-
... ,{ var p; p = Patch ( instr ); Sheet ({ arg f; var esp,tf; tf = SCTextField (f, Rect (0,0,500,350)); tf.string = instr.func.def.sourceCode; p.gui(f.startRow); ActionButton (f.startRow, "PLAY Pbind" ,{ if(esp.isPlaying,{ esp.stop }); esp = P ...
-
... , speeds= {|i| i+1/1000}.dup(n); var points; //--world w= RedWindow("3Dpoints", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.01]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.01); //--objects {|i| var loc= RedVe ...
-
... = {|i| i+1/1000}.dup(n); var hypercubes; //--world w= RedWindow("3Dhypercubes", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.01]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.01); //--objects {|i| var loc= RedVe ...
-
... ack, Color(1, 0.7, 0)]]); but.action_(func); } ); butZone = CompositeView(zone, Rect(0,0, 110, bounds.height - (skin.margin.y * 2))); butZone.addFlowLayout(2@2, 1@0); buttons = numItems.collect { Button.new(butZone, Rect(0,0, 100, skin.butt ...
-
... 5.linrand*#[-1, 1].choose}.dup(n); var boxes; //--world w= RedWindow("3Dboxes", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.01]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.01); //--objects {|i| var loc= RedVe ...
-
... ; // if bpp == 1, points are drawn as ovals // if bpp == 0, points are drawn as rectangles // values in between 0 and 1 are the probability of a point being drawn as a rectangle or an oval // ... 0.3 is a 30% chance of an oval ... 0.75 is a ...
-
... up(n), speeds= {|i| 1/100}.dup(n); var lines; //--world w= RedWindow("3Dlines", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.01); //--objects {|i| var loc= RedVecto ...
-
... ) .setSpec( \center, PointSpec( 200, 0.1@0.1 ) ) .setSpec( \radius, PointSpec( Rect(0,0,200,200), 0.1@0.1 ) );
-
//spinning planes / rectangles ( var width= 640, height= 480, w, wgrav, world, n= 100, thetas= 0.dup(n), speeds= {|i| i+1/10000}.dup(n); var planes; //--world w= RedWindow("3Dplanes", Rect(128, 64, width, height)).front; wgrav= RedVector2D[ ...
-
... er. ( SVGGroup ( [ SVGEllipse ( 200, 200, 100, 50, "my ellipse" , "olive" ), SVGRect ( 10, 10, 300, 200, 0, 0, "my rect" , "navajo_white" , "none" , 5 ).opacity_(0.5), SVGCircle ( 200, 200, 150, "my circle" , "chocolate" , "none" , 10 ), SV ...