Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. 236-3Dbox Quark

    ... theta]; box.update; //--render box.render(1, 100); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.strokeColor= Color.white; box.drawOutlines; Pen.fillColor= Color.white; box.draw; }; w.play; CmdPeriod.doOnce({w.close ...

  2. 200-discrete_world_ca Doc

    ... ld.neighbours(o).sum{|oo| oo.state} }; world.objects.do{|o, i| if(o.state==1, { Pen.addRect(Rect(o.loc[0]*wx, o.loc[1]*hy, wx, hy)); }); if(counts[i]==3, { o.state= 1; }, { if(counts[i]!=2, { o.state= 0; }); }); }; Pen.smoothing_(false); Pe ...

  3. 200-discrete_world_ca Quark

    ... ld.neighbours(o).sum{|oo| oo.state} }; world.objects.do{|o, i| if(o.state==1, { Pen.addRect(Rect(o.loc[0]*wx, o.loc[1]*hy, wx, hy)); }); if(counts[i]==3, { o.state= 1; }, { if(counts[i]!=2, { o.state= 0; }); }); }; Pen.smoothing_(false); Pe ...

  4. 238-4Dhypercube Doc

    ... rcube.update; //--render hypercube.render(2, 500); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.fillColor= Color.white; hypercube.draw; Pen.strokeColor= Color.white; hypercube.drawOutlines; }; w.play; CmdPeriod.doO ...

  5. 238-4Dhypercube Quark

    ... rcube.update; //--render hypercube.render(2, 500); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.fillColor= Color.white; hypercube.draw; Pen.strokeColor= Color.white; hypercube.drawOutlines; }; w.play; CmdPeriod.doO ...

  6. 235-3Dplanes Doc

    ... planes= {|i| Red3DPlane(RedVector3D[0, i+1/n-0.5, 0])}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(1, 0.5); Pen.translate(0, -50); world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; planes[i].rotation= RedVector3D[thetas[i], t ...

  7. 235-3Dplanes Quark

    ... planes= {|i| Red3DPlane(RedVector3D[0, i+1/n-0.5, 0])}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(1, 0.5); Pen.translate(0, -50); world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; planes[i].rotation= RedVector3D[thetas[i], t ...

  8. 050-boids Doc

    ... Wander2D; o.addForceArrive(world.objects[0].loc); //--plot target for testing //Pen.strokeColor= Color.red; //Pen.strokeOval(Rect.aboutRedVector2D(trg, o.wradius)); }, { world.objects[0].loc= w.mouse; }); //o.addForce(world.gravity); //no g ...

  9. 050-boids Quark

    ... Wander2D; o.addForceArrive(world.objects[0].loc); //--plot target for testing //Pen.strokeColor= Color.red; //Pen.strokeOval(Rect.aboutRedVector2D(trg, o.wradius)); }, { world.objects[0].loc= w.mouse; }); //o.addForce(world.gravity); //no g ...

  10. Pen Help

    Pen a cross-platform redirector for a GUI widget Inherits from: Object : ViewRedirect This class will return the gui kit specific version of a Pen. See also: GUI , GUI-Classes , GUI-Overview Examples and Documentation: For examples and plat ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow