-
... e[\cell]*0.85+0.15, 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... all particles Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); } )
-
... hite; //Pen.fillOval(Rect.aboutPoint(c, 15, 15)); //draw centroid }; }; w.play; CmdPeriod.doOnce({w.close}); ) //--play with the number of centroids/clusters ~k= 15 ~k= 35 ~k= 2 ~k= 3 ~k= 10 //--add some gravity to make things harder ~www.g ...
-
... r.grey(1-(i/~n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; ~win.play; CmdPeriod.doOnce({~win.close}); ) //--livecoding interpolates worlds //--first create 2 different worlds ~black= RedWorld3(RedVector2D[400, 400], RedVector2D[0, ...
-
... Color.grey(o.age/50, 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )
-
... ey(1, 0.4); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; }) //--livecoding w= RedUniverse.worlds[0] w.gravity= RedVector2D[-0.3, 0.04]; w.damping= 0.999 ...
-
... pareChildrenToBundle spawnToBundle didSpawn startTask isPlaying didStop didFree cmdPeriod guiClass Inherited instance methods Examples Classes (extension) | Libraries > crucial'>crucial > crucial>Instr'>Instr | Libraries > crucial'>crucial ...
-
... .layout_( HLayout( label, ).margins_(0)); win.front; // Useful when developping CmdPeriod.doOnce({ win.close; }); ) ⧉ ✔ You can use .displayFrame_(true) to render the GMStyle frame : ( var label = GMTextView() .fontRatio_(0.15) .displayFram ...
-
... _(0) .add(multiSlider) ); win.onClose_({ if(synthFree.not) { synth.free; }; }); CmdPeriod.doOnce({ synthFree = true; win.close; }); win.front; }); ) ⧉ ✔ In the context of Frequency Modulation, using a 2D slider allows to control the two par ...
-
... p(0, 5, 200, 2000), \freq2, (5-o.mass).linexp(0, 5, 200, 2000) ); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } )