Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. 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, ...

  2. 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}); )

  3. 102-particle-system_fountain_synth Quark

    ... 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}); } ...

  4. HadronCanvas Quark

    ... .background_(Color.white) .resize_(5) .drawFunc_ ({ var tempRect; var tempDist; Pen.color_(Color.black); if(cablePointsBucket.size > 0, { cablePointsBucket.do ({|item| //Pen.line(item[0], item[1]); tempDist = (item[0].y - item[1].y).abs.cli ...

  5. MTP Quark

    ... .isRunning.binaryValue * 0.24 + 0.38)); // draw on/off and default key commands Pen.stringAtPoint(status, 4@4, bigFont, Color.white); (MTP.infoText ++ MTP.extraText).do { |line, i| Pen.stringAtPoint(line, (bigFont.size * 2) @ (i * halfFont. ...

  6. MTP Quark

    ... .isRunning.binaryValue * 0.24 + 0.38)); // draw on/off and default key commands Pen.stringAtPoint(status, 4@4, bigFont, Color.white); (MTP.infoText ++ MTP.extraText).do { |line, i| Pen.stringAtPoint(line, (bigFont.size * 2) @ (i * halfFont. ...

  7. UMarkerGUI Quark

    ... _(3) .drawFunc_({ |vw| var wd = 8, smallRect; if( chain.displayColor.notNil ) { Pen.roundedRect(vw.drawBounds, wd); chain.displayColor.penFill(vw.drawBounds, 1, nil, 10); smallRect = Rect( vw.bounds.width - wd, 0, wd, wd ); Pen.color = Colo ...

  8. imageExamples Quark

    ... 10, 500, 400, 400)).front;\ w.view.background_( Color .clear);\ w.drawHook = \\ Pen .use \\ Pen .translate(20, 20);\ Pen .scale(scalex, scaley);\ image.drawAtPoint(0@0);\ \\ \;\ \ v = SC2DSlider (w, Rect (20, image.height + 30, 100, 30));\ ...

  9. 001-single Quark

    ... loc, vel, acc, 1, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o| //iterate all objects in this world o.addForce(o.world.gravity); //add gravity o.update; //object update worl ...

  10. 01_GuidedTour Quark

    ... * 4); // when in doubt, put thing in parens Number can assume many meanings, depending on what they are used for: frequencies, colors, geometric shapes, anything. // all the math operations here: SimpleNumber.help // Collections, Arrays, L ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow