Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... initGrid { arg w, argbounds, argcolumns, argrows, argborder=false; var p, rect, pen; lazyRefreshFunc = { this.refresh; refreshDeferred = false; }; bounds = argbounds ? Rect(20, 20, 400, 200); bounds = Rect(bounds.left , bounds.top , bounds. ...

  2. ChordtrisMatrix Quark

    ... s-1) or: { x > (numColumns-1) }){ ^false }; ^true } // draws the Matrix using a Pen // the result can be moved to another position by providing the parameters xOffset and yOffset draw { |xOffset=0, yOffset=0| array.do { |row, ri| row.do { | ...

  3. ToggleSwitch Quark

    ... toggleRect = this.pr_calcToggleRect(orientation); rad = this.pr_calcRadius() ; Pen.use { // horizontal labelOffset=5; Pen.font = font; Pen.color_(labelColor); label.notNil.if{ this.drawLabel(orientation); }; label2.notNil.if{ this.drawLabe ...

  4. 041-pendulum2 Doc

    //many pendulums in a world with gravity ( var width= 300, height= 300, w, wgrav, world, n= 50, ploc; //--world w= RedWindow("pendulum test2", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[wi ...

  5. 041-pendulum2 Quark

    //many pendulums in a world with gravity ( var width= 300, height= 300, w, wgrav, world, n= 50, ploc; //--world w= RedWindow("pendulum test2", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[wi ...

  6. 017-repulsive3 Doc

    ... 0.001))*0.5+0.5*width, cos(w.frame*0.027+cos(w.frame*0.0012))*0.5+0.5*height ]; Pen.strokeColor= Color.yellow; Pen.strokeOval(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; world.objects.do{|o, i| if(o!=rep, { o.addForce(o.gravi ...

  7. 017-repulsive3 Quark

    ... 0.001))*0.5+0.5*width, cos(w.frame*0.027+cos(w.frame*0.0012))*0.5+0.5*height ]; Pen.strokeColor= Color.yellow; Pen.strokeOval(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; world.objects.do{|o, i| if(o!=rep, { o.addForce(o.gravi ...

  8. GMSymbolSlider Quark

    ... nt( super.bounds.width / 2, super.interactionRect.bottom - symbolPosition ); }; Pen.strokeColor_(super.mainColor); Pen.width_(super.outlineSize); if(thisDisplayLine != \none) { if(thisDisplayLine == \full) { if(super.orientation == \horizon ...

  9. 180-distance_lines Doc

    ... el, 0, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.fillColor= Color.grey(0, cnt.fold(0, 500)/10000); Pen.fillRect(Rect(0, 0, width, height)); world.objects.do{|o| world.objects.do{|oo| var dist= o.loc.distan ...

  10. 180-distance_lines Quark

    ... el, 0, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.fillColor= Color.grey(0, cnt.fold(0, 500)/10000); Pen.fillRect(Rect(0, 0, width, height)); world.objects.do{|o| world.objects.do{|oo| var dist= o.loc.distan ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow