Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    // curve with 2 control points drawing // wslib 2006 + Pen { *addCurve { |start, c1, c2, end, div=10| c2 = c2 ? c1; Pen.lineTo( start ); (div-1).do({ |i| var x,y; x = [start.x, end.x].splineIntFunction( (i+1) / div, c1.x, c2.x ); y = [start ...

  2. StepButton Quark

    ... erh,centerv; centerh = drawRect.center.x; centerv = drawRect.center.y; horz.if{ Pen.fillColor_(color1); Pen.moveTo(drawRect.right@centerv); Pen.lineTo( (centerh+gap)@drawRect.bottom); Pen.lineTo( (centerh+gap)@drawRect.top); Pen.moveTo(draw ...

  3. GMUserView Quark

    ... be compiled // BEFORE we can compile this particular class Class.initClassTree(Pen); Class.initClassTree(GMStyle); } // Custom init function, to be called by subclasses // when they init init { this.style_(GMStyle.default); } style { ^this ...

  4. Poussière : standalone dust generator (uncommented version of luce) by simon (Dindoléon) Code

    ... - ( margin * 2 ), window_size[1] - ( margin * 2 ) )); slider.drawFunc = { Pen.width = stroke_size; Pen.addRect( Rect(0,0, slider.bounds.width,slider.bounds.height) ); Pen.fillAxialGradient( slider.bounds.leftBottom, slider.bounds. ...

  5. minbox Quark

    ... var in = this.input; if(bounds!=view.bounds) { this.calcConsts(view.bounds) }; Pen.width = 1; switch(mode) { \round } { Pen.fillColor = lineColor; Pen.fillRect(or); Pen.fillColor = loColor; Pen.addAnnularWedge(or.center, 0, radius, -1.25pi ...

  6. bufferdisplay by redfrik (redFrik) Code

    ... //uncomment framerate display in the two lines below to gain some speed Pen.color= Color.white; Pen.stringAtPoint(""++u.frameRate, Point(10, 10)); //-- b.getn(0, b.numFrames-1, {|data| arr= data}); if(cnt==0, ...

  7. SynthDefGraph Quark

    SynthDefGraph { var <>def,uv,pen; var font,black,h,w; *new { arg def,parent,bounds; ^super.new.def_(def).gui(parent,bounds) } gui { arg parent,bounds; if(parent.notNil,{ parent = parent.asFlowView(bounds); uv = UserView(parent,bounds ?? {pa ...

  8. GMConsole Quark

    ... usButton; this.prDrawNextButton; this.prDrawLastButton; // Write the time stamp Pen.stringAtPoint( currentTimeStamp, Point( super.interactionRect.left + 5, super.interactionRect.top ), thisFontInstance.deepCopy.size_( min( 12, super.interac ...

  9. VuView Quark

    ... unds.width, this.view.bounds.height); // frame Color.black.alpha_(0.4).set; GUI.pen.width = 2; GUI.pen.moveTo(bounds.left @ (bounds.top + bounds.height)); GUI.pen.lineTo(bounds.left @ bounds.top); GUI.pen.lineTo((bounds.left + bounds.width) ...

  10. SCTransportWindow Quark

    ... \play ] ) { backColor = backColor.blend( Color.black, 0.25 ); }; backColor.set; Pen.addArc( view.bounds.center, view.bounds.height / 2, 0, 2pi); Pen.fill; Color.black.alpha_(0.9).set; Pen.width = 3; Pen.addArc( view.bounds.center, view.boun ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow