-
Rand: Filter: Description Class methods new Inherited class methods Instance methods Inherited instance methods Examples Classes | UGens > Random'>Random Rand : UGen : AbstractFunction : Object Single random number generator. Source: Noise. ...
-
... t(w.view.bounds, 10@10, 20@5); 16.do{ Slider2D(w.view, 80@80).background_(Color.rand) }; ) ⧉ ✔ You can also write: ( w = Window.new.front; w.addFlowLayout(10@10, 20@5); // a shortcut method, see SCContainerView 16.do{ Slider2D(w.view, 80@80 ...
-
... freq:8*mx, ampscale:my, durscale:my, initCPs:7, mul:0.3), 0.0)}.play ) //1 CP = random noise effect {Pan2.ar(Gendy4.ar(initCPs:1))}.play //2 CPs = suudenly an oscillator (though a fast modulating one here) {Pan2.ar(Gendy4.ar(initCPs:2))}.pl ...
-
... v,maxvel,damp //--init objects n.do{|i| RedOscillator2(world, RedVector2D[width.rand, height.rand], nil, nil, 0, 10) .internalCoupling_(0.4/n) .coupling_(0.6/n) .freq_(0.01.rand+0.01) .freq2_(0.02.rand+0.05) .phase_(2pi.rand) .phase2_(2pi.r ...
-
... ysics= TraerParticleSystem(0.1, 0.2, 0.3, 0.9); num.do{physics.makeParticle(1.5.rand+0.5, width.rand, height.rand, 0)}; anchor= physics.makeParticle(1, width/2, height/2, 0); anchor.makeFixed; springs= physics.particles.do{|p| physics.makeS ...
-
... nil, nil, 0, 1/n*width) .internalCoupling_(0.2/n).coupling_(0.3/n) .freq_(0.01.rand+0.01) .freq2_(0.1.rand+0.05) .phase_(2pi.rand) .phase2_(2pi.rand) .amp_(0.6) .amp2_(0.9) }; //--loop w.draw{ world.objects.do{|o, i| o.couple(world.objects ...
-
... lays at (50, 0) b = Slider2D(c, Rect(100, 100, 100, 100)); c.background = Color.rand; w.front; ) c.bounds_(Rect(100, 0, 300, 300)); // contents adjust since coords are relative c.resize_(6); // contents adjust since coords are relative ⧉ ✔ ...
-
... freq:8*mx, ampscale:my, durscale:my, initCPs:7, mul:0.3), 0.0)}.play ) //1 CP = random noise effect {Pan2.ar(Gendy5.ar(initCPs:1))}.play //2 CPs = suudenly an oscillator (though a fast modulating one here) {Pan2.ar(Gendy5.ar(initCPs:2))}.pl ...
-
... grav,maxvel,damp //--objects ~objA= RedObject(world, RedVector2D[width, height].rand, RedVector2D[0, 0], RedVector2D[0, 0], 5, 5); //world,loc,vel,acc,mass,size ~objB= RedObject(world, RedVector2D[width, height].rand, RedVector2D[0, 0], Red ...
-
... h, height], wgrav, 99, 0); //dim,grav,maxvel,damp //--interface ~initSize= {2.0.rand}; //object size at creation ~distance= 1; //collision min distance //--objects - the first one always in the middle RedObject(world, RedVector2D[width*0.5, ...