Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. 121-collision_boids Doc

    ... collide(oo)}; //faster but less accurate 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. 220-lorenz_attractor Doc

    ... aw{ 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(~order), ...

  3. PwarpDur Doc

    ... ], [curve.neg, curve]); var curveResolution = numSteps * 8; // relative to 0, 0 Pen.translate(strHeight * 0.5, height * 0.5) .rotate(-0.5pi) .stringCenteredIn("Equal durations in", Rect(height * -0.5, strHeight * -0.5, height, strHeight), F ...

  4. particle_system_with_sound Doc

    ... e(obj[\particle]); obj[\synth].set(\gate, 0); objects.remove(obj); }; ~ps.tick; Pen.fillColor= Color.black; objects.do{|obj| var age= obj[\particle].age; var delta= obj[\delta]; var size= age.linlin(0, maxAge, 100, 0)*obj[\particle].mass; v ...

  5. 035-wave-phase Doc

    ... ts.do{|o, i| o.addForce(world.gravity); o.update; world.contain(o)}; //--render Pen.fillColor= Color.green(1, 0.4); world.objects.do{|o, i| Pen.fillRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  6. GUI-Introduction Doc

    ... rCollider used to have a pretty nasty GUI class system that involved platform-dependent classes like SCWindow. This system is completely gone in 3.7 with a unified Qt GUI. You will still see remnants of the old GUI classes in some SuperColl ...

  7. 004-multiple_synth Doc

    ... freq, \maxDur, osize, \amp, amp, \pan, pan]); }); world.contain(o); //--render Pen.strokeColor= Color.grey(o.mass/4, 0.7); Pen.strokeOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); })

  8. RedLTurtle Doc

    ... LSystem Location: NOT INSTALLED! See also: RedLSystem Description Plotting with Pen . After Flake - "The Computational Beauty of Nature". Class Methods . new Arguments: lsystem An instance of RedLSystem or a String . length Line segment len ...

  9. RedBMP Doc

    ... . plot Generates an Image and display it. . makeWindow Display the pixels using Pen and fillRect . . type A string. "BM". . width . height Image dimensions in pixels. . depth Colour depth. 1, 4, 8, 16, 24 or 32. . compression When read from ...

  10. 060-angents-gol Doc

    ... orceWander2D; o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.fillColor= Color.grey(o.state[\cell]*0.85+0.15, 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

prev 11 12 13 14 15 16 17 18 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow