Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... rt, end| ^this.class.new( *points.copyRange( start, end ) ) } drawFunction { ^{ Pen.moveTo( points[0] ); points[1..].do({ |point| Pen.lineTo(point) }); } } drawFunctionJ { ^{ JPen.moveTo( points[0] ); points[1..].do({ |point| JPen.lineTo(po ...

  2. VirtualOrb Quark

    ... th+50)).front;\ window.view.background_( Color .black);\ window.drawHook = \\ \ Pen .use \\ Pen .translate(10, 10);\ colors.do\ |color, i| \ color.set;\ Pen .fillRect( Rect (pad/2, 0, i_width, i_width));\ /*Pen.addAnnularWedge(Point(*((pad+ ...

  3. UScoreEventView Quark

    ... { innerRect = scaledRect.insetBy(0.5,0.5); //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect); Pen.stroke; }; //event is playing if( event.isPlaying ) { Pen.width = 3; Pen.color = Col ...

  4. UVoicerEventView Quark

    ... { innerRect = scaledRect.insetBy(0.5,0.5); //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect); Pen.stroke; }; //event is playing if( event.isPlaying ) { Pen.width = 3; Pen.color = Col ...

  5. UScoreEventView Quark

    ... { innerRect = scaledRect.insetBy(0.5,0.5); //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect); Pen.stroke; }; //event is playing if( event.isPlaying ) { Pen.width = 3; Pen.color = Col ...

  6. turtle Quark

    ... + actPoint; points = points.add(newPoint); isDraw = isDraw.add(isDraw.last); } penUp{ points = points.add(points.last); isDraw = isDraw.add(false); } penDown{ points = points.add(points.last); isDraw = isDraw.add(true); } stroke { points.d ...

  7. 03b_shared_coding_drawer Quark

    ... oUV.frameRate }; ) // now tell it what to draw: q.draw.demoUV.drawFunc = { |uv| Pen.stringCenteredIn( "q.draw.demoUV.drawFunc runs", uv.bounds, Font("Futura", 24), Color.white ); }; // make sure history has a line History.enter("// this is ...

  8. extPlotTreeScale Quark

    ... lectChildren, levels, countSize; var view, bounds; var updater, updateFunc; var pen, font; pen = GUI.current.pen; font = Font.sansSerif(10); view = UserView.new(parent, Rect(0,0,400,400)); view.drawFunc = { var xtabs = 0, ytabs = 0, drawFun ...

  9. GMTapTempo Quark

    ... tion = {}; this.mouseDownAction_({ var reset, time, times; // This will only happen on first click if(timeStamps.isNil) { timeStamps = List(0); timeStamps.add([ Date().hourStamp, SystemClock.seconds ]); thisAction.value(nil, timeStamps); ti ...

  10. Redraw Quark

    ... on= {|v, x, y, m| mouse= Point(x, y); userView.refresh; }; userView.drawFunc= { Pen.width= width; Pen.strokeColor= strokeColor; if(pmouse.notNil, { if(pmouse==mouse, { Pen.addRect(Rect.aboutPoint(mouse, 0.5, 0.5)); }, { case {mod.isCtrl} { ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow