Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (94) Code (9) Doc (39) Help (3) Quark (42) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. 178-springs_coupled Doc

    //springs coupled ( var width= 300, height= 300, w, world, leftWall, rightWall, leftSpr, rightSpr, list= List.new; //--world w= RedWindow("spring coupled", Rect(128, 64, width, height)).front; world= RedWorld1(RedVector2D[width, height]); / ...

  2. red00 Doc

    ... false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.1, 0.2, 0.3, 0.9); num.do{physics.makeParticle(1.5.rand+0.5, width.rand, height.rand, 0)}; an ...

  3. red01 Doc

    ... false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.2.rand2, 0.2.rand2, 0, 0.4); num.do{physics.makeParticle(1, width.rand, height.rand, 0)}; anc ...

  4. red02 Doc

    ... false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.1, 0.2, 0.3, 0.1); num.do{|i| physics.makeParticle(0.5, width.rand, height.rand, 0)}; anchor= ...

  5. TraerParticleSystem Doc

    ... ods setIntegrator setGravity setDrag tick clear makeParticle removeParticle makeSpring removeSpring makeAttraction removeAttraction Inherited instance methods Classes (extension) | TraerPhysics TraerParticleSystem Extension takes care of gr ...

  6. red05 Doc

    ... age.div(10).rand.do{|i| var q= physics.particles.choose; if(p!=q, { physics.makeSpring(p, q, 0.1.rand, 0.25.rand, 10.rand+10); }); }; }; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { var dead= List.new; physics.particles.do{|p, ...

  7. RedObject Doc

    ... Force viscosityForce contains containsLoc collide world loc vel accel mass size spring barycenter Inherited instance methods Examples Classes (extension) | Red > redUniverse'>redUniverse RedObject Extension fundamental object in the redUniv ...

  8. particle_system_with_sound Doc

    ... ~ps.makeParticle(1, x, y, 0); //create a particle at mouse location s= ~ps.makeSpring(p, mouse, diff.x*0.01, diff.y*0.01, delta); if(objects.size<500, { objects.add(( particle: p, spring: s, synth: Synth(\part, [\out, 40, \x, x, \y, y]), d ...

  9. red04 Doc

    ... age.div(10).rand.do{|i| var q= physics.particles.choose; if(p!=q, { physics.makeSpring(p, q, 0.1.rand, 0.25.rand, 100.rand+10); }); }; }; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { var dead= List.new; physics.particles.do{|p, ...

  10. TraerPhysicsOverview Doc

    ... tion(a, b, k, distanceMin) - act on two particles (a and b, k is strength) TraerSpring TraerSpring(a, b, ks, d, r) - act on two particles (a and b, ks is spring constant, d is damping and r rest length) TraerVector3D TraerVector3D(x, y, z) ...

prev 1 2 3 4 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow