Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... 3]; point.update; //--render point.render(1, 300); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.fillColor= Color.white; point.draw(12); //dotSize }; w.play; CmdPeriod.doOnce({w.close}); )

  2. 036-wave-phase Doc

    ... ts.do{|o, i| o.addForce(world.gravity); o.update; world.contain(o)}; //--render Pen.fillColor= Color.blue(1, 0.5); Pen.width= 3; world.objects.do{|o, i| Pen.fillOval(Rect.aboutRedVector2D(o.loc, i.linexp(0, n, 1, n)+5)); }; }; w.play; CmdPe ...

  3. red04 Doc

    ... }}.do{|s| physics.removeSpring(s)}; physics.removeParticle(p); }; physics.tick; Pen.fillColor= Color.green(0.6, 0.3); physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass*(1-(p.age/maxAge)), p.mass* ...

  4. MenuAction Doc

    ... e. Arguments: string A label for the separator. These are not always visible, depending on your OS and context. Inherited class methods Undocumented class methods MenuAction. qtClass Instance Methods . string . string = str From superclass: ...

  5. RedGIF Doc

    ... .height*scale), false); var image; win.background= Color.green; win.drawFunc= { Pen.smoothing= false; image= a.images[0]; image.data.do{|col, i| if(image.control.transparentFlag.not or:{ image.control.transparent!=image.indices[i] }, { Pen. ...

  6. 070-lsystem Doc

    ... ld(-90, 90); lsys.reset; lsys.next; lsys.next; lsys.next; lsys.next; //--render Pen.strokeColor= Color.white; Pen.translate(width*0.5, height*0.8); lplot.draw; }; w.play; CmdPeriod.doOnce({w.close}); )

  7. 071-lsystem_grow Doc

    ... t.lsystem= lsys; lsys.reset; cnt= -1; }); }); lsys.next; cnt= cnt+1; //--render Pen.strokeColor= Color.white; Pen.translate(width*0.5, height*0.667); lplot.draw; }; w.play(2); //fps CmdPeriod.doOnce({w.close}); )

  8. Red3D Doc

    ... oval at each point (in each corner). Must be called inside a draw function. Use Pen.fillColor_ to set the color. Arguments: dotSize The size of the oval. . drawOutlines Draws a line between each point (all edges). Must be called inside a dr ...

  9. 161-growth2 Doc

    ... avity= RedVector2D[0.1.rand2, 0.1.rand2]; ~distance= 10.rand+1; rrr= 0.6.rand2; Pen.strokeColor= Color.black; (100+2).rand.do{ //--separate free and frozen objects free= world.objects.select{|o| o.vel!=still}; frozen= world.objects.select{| ...

  10. 100-particle-system Doc

    ... avity); sys.update; //--render sys.do{|o| //iterate all particles in the system Pen.fillColor= Color.grey((o.age/50), 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow