-
... ct(world, loc, 0, 0, mass, mass*4); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ var bary= RedVector2D[0, 0], totalMass= 0; world.objects.do{|o, i| totalMass= totalMass+o.mass; world.objects.do{|oo, j| if(i!=j, { o.addForce(o.gr ...
-
... der PLn and the cutItems arg of PLx list patterns. A word of caution: feeding a looped process with an invalid input has always the potential to lead to hangs. See PsymNilSafe and PLx and live coding with Strings for some remarks on that. P ...
-
... gacy-Patch-Files. Bietet: // • eine saubere, z354-gestützte Wiedergabe (~playF2ALoop / ~stopF2ALoop) // • No-op-Stubs für alle GUI-Knöpfe, die früher von Core_07..Core_99 kamen // (Transforms, Session/Projekt-Panels, Batch, SMR-Export, Trac ...
-
... (world, loc, vel, 0, mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ cnt= cnt+1; wind= amp*sin(2pi*(cnt/period)); //wind blowing world.objects.do{|o| o.addForce(world.gravity); o.addForce(wind); o.update; world.conta ...
-
... notNil) { res.list_(list) }; if (index.notNil) { res.index_(index) }; }; ^res } loop { repeats = inf } value { |...args| this.next(*args) } next { |...args| var which; index = nextIndex; which = list.wrapAt(index); this.findNext(which.to); ...
-
... t*0.4, width, 40); //area with super friction ff= 0.5; //amount of friction //--loop w.draw{ if(fric.containsPoint(obj.loc.asPoint), { if(obj.vel.mag>0 and:{obj.vel.mag>obj.frictionForce(ff).mag}, { obj.addForce(obj.frictionForce(ff)); }, { ...
-
... ject(world, loc, nil, 0, 1.5, 10)); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ if(0.005.coin, {world.gravity= RedVector2D[0, -0.7.rrand(0.7)]; world.gravity.postln}); sys.do{|o, i| o.loc= o.loc+RedVector2D[0, sys.wave.wrapAt(i ...
-
... 1, height/(n*2)) //world,loc,vel,acc,mass,size .angularVel_(0.2.rand2); }; //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o, i| if(i>0, { o.loc= world.objects[i-1].pendulumLoc2D; }); }; world.objects.do{|o| ...
-
... World3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--loop ~win.draw{ Pen.strokeColor= Color.white; ~world.objects.do{|o| o.addForce(o.world.gravity); o.update; o.world.contain(o); //--render Pen.strokeRect(Rect.ab ...
-
... bufnum: buf, phase: PhasorTJ.ar(BufDur.ir(buf).reciprocal) * BufFrames.ir(buf), loop: 1, interpolation: 2 ); }.play; x.free SCDoc.indexAllDocuments(true)