Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... 2]; plane.update; //--render plane.render(1, 300); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.strokeColor= Color.white; plane.drawOutlines; Pen.fillColor= Color.white; plane.draw(10); //dotSize }; w.play; CmdPeri ...

  2. VGScale Quark

    ... .postln; } } VGScaleGraph { classvar w, <>color; classvar <>scale = \pelog; *isOpen { ^w.notNil and: { w.isClosed.not } } *refresh { if(this.isOpen) { w.refresh } } *initClass { color = (semitone: Color.blue(0.5), scale: Color.red, insts: C ...

  3. 239-4Dhypercubes Quark

    ... c,vel,acc,mass,size hypercubes= {|i| Red4DTesseract()}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.fillColor= Color.green(1, 0.25); world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; hypercubes[i].rotation= RedVector.new ...

  4. 018-repulsive_discrete Quark

    ... and], nil, 15, pixelSize); //world,loc,vel,acc,mass,size }; }; //--loop w.draw{ Pen.smoothing_(false); Pen.strokeColor= Color.green; rep.loc= w.mouse/[wn, hn]; Pen.strokeRect(Rect.aboutPoint(rep.loc.round.asPoint*[wn, hn], pixelSize, pixelS ...

  5. HadronCanvasItem Quark

    ... _(Color.gray) .focusColor_(Color(alpha: 0)) .drawFunc_ ({|view| var tempString; Pen.font = Font("Helvetica", 10); tempString = parentPlugin.class.asString; if(parentPlugin.extraArgs.notNil, { tempString = tempString + parentPlugin.extraArgs ...

  6. 237-3Dboxes Quark

    ... (n); //world,loc,vel,acc,mass,size boxes= {Red3DBox()}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.fillColor= Color.green(1, 0.25); world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; boxes[i].rotation= RedVector3D[thetas ...

  7. 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 ...

  8. 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 ...

  9. 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 ...

  10. 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 ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow