Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (535) Code (6) Doc (245) Help (16) Quark (266) Plugin (2) SCDoc ↗ Forum ↗ Google ↗
  1. 050-boids Quark

    ... .addForce(world.gravity); //no gravity involved o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  2. CampCutProc Quark

    ... lutions always swap val and one above val offsetlist.swap(val,val+1); }); }); //render block //always new slice/roll to calculate cuts=[blocklength]; this.updateblock; //to minimise floating point errors? //if(block==(bells-1),{blocklength= ...

  3. 220-lorenz_attractor Doc

    ... op w.draw{ obj.vel= lorenz.value(obj.loc, ~sigma, ~rho, ~beta); obj.update; //--render Pen.fillColor= Color.grey((obj.loc[2]/(depth*0.5)).clip(0, 1)); Pen.fillOval(Rect.aboutRedVector3D( (obj.loc*15+[width*0.5, height*0.5, depth*0.5]).at(~o ...

  4. 220-lorenz_attractor Quark

    ... op w.draw{ obj.vel= lorenz.value(obj.loc, ~sigma, ~rho, ~beta); obj.update; //--render Pen.fillColor= Color.grey((obj.loc[2]/(depth*0.5)).clip(0, 1)); Pen.fillOval(Rect.aboutRedVector3D( (obj.loc*15+[width*0.5, height*0.5, depth*0.5]).at(~o ...

  5. 053-boids_1d Doc

    ... addForceWander1D; o.addForceArrive(att.loc[0]); o.update; world.contain(o); //--render xy= Point(o.loc[0], i.linlin(0, n-1, world.objects[0].size, height-world.objects.last.size)); Pen.fillOval(Rect.aboutPoint(xy, o.size, o.size)); //--plot ...

  6. 053-boids_1d Quark

    ... addForceWander1D; o.addForceArrive(att.loc[0]); o.update; world.contain(o); //--render xy= Point(o.loc[0], i.linlin(0, n-1, world.objects[0].size, height-world.objects.last.size)); Pen.fillOval(Rect.aboutPoint(xy, o.size, o.size)); //--plot ...

  7. 008-multiple-3d Doc

    ... world.objects.do{|o| o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.strokeColor= Color.grey((depth-o.loc[2]/(depth*0.5)).clip(0, 1)); Pen.strokeRect(Rect.aboutRedObject3D(o, s, f)); }; }; w.play; CmdPeriod.doOnce({w.c ...

  8. 008-multiple-3d Quark

    ... world.objects.do{|o| o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.strokeColor= Color.grey((depth-o.loc[2]/(depth*0.5)).clip(0, 1)); Pen.strokeRect(Rect.aboutRedObject3D(o, s, f)); }; }; w.play; CmdPeriod.doOnce({w.c ...

  9. ProcessTools Quark

    ... time-Synthesis ] processes and then automatically doing something else once the rendering is complete.

  10. 025-barycenter Doc

    ... world.contain(~objA); world.contain(~objB); bary= ~objA.barycenter(~objB); //--render Pen.strokeColor= Color.magenta; Pen.strokeOval(Rect.aboutRedObject2D(~objA)); Pen.strokeColor= Color.cyan; Pen.strokeOval(Rect.aboutRedObject2D(~objB)); ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow