Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... rad); //func= cos(theta); func= sin(cnt*rad.cos+(5*theta)); y= y+dy; //--render Pen.strokeColor= Color.grey(func+1); Pen.strokeRect(Rect(i, j, 1, 1)); }; x= x+dx; } }; w.play; CmdPeriod.doOnce({w.close}); )

  2. MxChannelFader Quark

    ... { solo = false; mute = true; dbJack.value = -300; dbJack.changed; } draw { arg pen, bounds, style; pen.color = style['fontColor']; pen.font = style['font']; if(mute, { ^pen.stringCenteredIn("muted", bounds); }); pen.stringCenteredIn(db.rou ...

  3. 055-boids-ga_synth Doc

    ... Phenome(x).asSynthDef2.play(s, [\amp, 0])}; 0.5.wait; //--loop w.draw{ 4.do{|i| Pen.fillColor= Color.red(0.5, i+1/4); Pen.fillOval(Rect.aboutRedVector2D(w.mouse, 4-i/3*25)); }; world.objects.do{|o, i| var amp= 0; o.addForceWander2D; if(i==0 ...

  4. 055-boids-ga_synth Quark

    ... Phenome(x).asSynthDef2.play(s, [\amp, 0])}; 0.5.wait; //--loop w.draw{ 4.do{|i| Pen.fillColor= Color.red(0.5, i+1/4); Pen.fillOval(Rect.aboutRedVector2D(w.mouse, 4-i/3*25)); }; world.objects.do{|o, i| var amp= 0; o.addForceWander2D; if(i==0 ...

  5. ServerView Quark

    ... w().fixedHeight_(10).drawFunc_({ |v| var y = (v.bounds.height / 2).round + 0.5; Pen.strokeColor = Color.grey(0.5, 0.2); Pen.width = 1; Pen.line(2@y, (v.bounds.width - 2)@y); Pen.stroke(); }) } ).spacing_(1).margins_(0) ).canFocus_(true); co ...

  6. UserView-Subclassing Doc

    ... ne the *viewClass method 3. Set up your view 4. Define a drawing function for SCPen 5. Define typical widget methods 6. Override mouseActions 7. Define default key actions 8. Define default drag and drop actions Custom view template NOTE: T ...

  7. sDrone Quark

    ... I.adapt(win); backgroundImage= Image(winRect.width, winRect.height).draw({|img| Pen.strokeColor= palette.highlight; Pen.translate(img.width*0.54, img.height*0.5); 200.do{|i| var r= i*(winRect.width*0.002)+1; Pen.width= i.linlin(0, 199, 0.5, ...

  8. 011-attraction2 Doc

    ... orce(o.gravityForce(oo).neg); }); }); }; o.update; world.contain(o); //--render Pen.strokeColor= Color.grey(1-(o.mass/12)); Pen.strokeRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  9. 011-attraction2 Quark

    ... orce(o.gravityForce(oo).neg); }); }); }; o.update; world.contain(o); //--render Pen.strokeColor= Color.grey(1-(o.mass/12)); Pen.strokeRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  10. 102-particle-system_fountain_synth Doc

    ... rld.gravity= RedVector2D.newFrom(w.mouse/([width, height])-0.5); }); //--render Pen.strokeColor= Color.white; sys.do{|o| //iterate all particles Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); } ...

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow