Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... super.drawBackground(super.backgroundColor); // Draw beat if(thisBeat != -1) { Pen.fillColor_(super.beatColor); if(super.orientation == \horizontal) { Pen.fillRect( Rect( super.interactionRect.left + (thisBeat * (super.interactionRect.widt ...

  2. 008-multiple-3d Doc

    ... rand2, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(0.5); Pen.strokeRect(Rect.aboutRedVector3D(RedVector[width*0.5, height*0.5, depth], width*0.5, width, height, depth, s, f)); Pen.str ...

  3. 008-multiple-3d Quark

    ... rand2, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(0.5); Pen.strokeRect(Rect.aboutRedVector3D(RedVector[width*0.5, height*0.5, depth], width*0.5, width, height, depth, s, f)); Pen.str ...

  4. GrainOTec by simon (Dindoléon) Code

    ... rray; }; // Slider Draw Function draw_slider = { | slider, value, color | Pen.width = stroke_size; // Draw the frame Pen.strokeColor = Color.white; Pen.fillColor = Color.black; Pen.addRect(Rect(0, 0, slider.bounds.width,slid ...

  5. UDragBin Quark

    ... |vw| if( View.currentDrag.notNil && { canReceiveDragHandler.value == true; }) { Pen.width = 2; if( current === vw ) { Pen.color = color.copy.alpha_(1); } { Pen.color = color.copy.alpha_(0.25); }; Pen.roundedRect( vw.bounds.moveTo(0,0).inset ...

  6. UDragBin Quark

    ... |vw| if( View.currentDrag.notNil && { canReceiveDragHandler.value == true; }) { Pen.width = 2; if( current === vw ) { Pen.color = color.copy.alpha_(1); } { Pen.color = color.copy.alpha_(0.25); }; Pen.roundedRect( vw.bounds.moveTo(0,0).inset ...

  7. 025-barycenter Doc

    ... contain(~objA); world.contain(~objB); bary= ~objA.barycenter(~objB); //--render Pen.strokeColor= Color.magenta; Pen.strokeOval(Rect.aboutRedObject2D(~objA)); Pen.strokeColor= Color.cyan; Pen.strokeOval(Rect.aboutRedObject2D(~objB)); Pen.fil ...

  8. 025-barycenter Quark

    ... contain(~objA); world.contain(~objB); bary= ~objA.barycenter(~objB); //--render Pen.strokeColor= Color.magenta; Pen.strokeOval(Rect.aboutRedObject2D(~objA)); Pen.strokeColor= Color.cyan; Pen.strokeOval(Rect.aboutRedObject2D(~objB)); Pen.fil ...

  9. ToolBar Doc

    ... one of the values of QToolButtonStyle . Discussion: ( ~icon = Image(64).draw({ Pen.fillOval(Rect(0, 0, 64, 64)) }); ~styles = QToolButtonStyle.classVarNames; ~tool = ToolBar( MenuAction("Text") .icon_(~icon) .action_({ ~tool.toolButtonStyl ...

  10. 034-wave-system Doc

    ... sys.wave.wrapAt(i)]); }; //sys.addForce(world.gravity); sys.update; //--render Pen.fillColor= Color.grey(1, 0.5); //Pen.strokeColor= Color.grey(1, 0.5); //Pen.moveTo(sys.objects[0].loc.asPoint); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObje ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow