Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. 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 ...

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

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

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

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

  6. 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} { ...

  7. imuUV Quark

    ... % \n" // .postf(bounds, center, myscaleW.round(0.001), myscaleH.round(0.001)); Pen.scale(myscaleW, myscaleH); if ([\full, \touch, \binary, \binMove, \off].includes(NTMI.nUFO.mode)) { padCenters = [ // left side - top, midtop, midbottom, bo ...

  8. Red3D Quark

    ... dist); Point(v[0], v[1])*size; }; } draw {|dotSize= 5| renderedPoints.do{|p, i| Pen.fillOval(Rect.aboutPoint(p, vectors[i][2]+1*dotSize, vectors[i][2]+1*dotSize)); }; } drawOutlines { outlines.do{|o| Pen.line(renderedPoints[o[0]], renderedP ...

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

  10. GMRecordButton Quark

    ... .frame / 60 * pi).abs ); }; // super.drawFrame "override hack" super.drawFrame; Pen.fillColor_(thisCurrentBackgroundColor); Pen.fillRect(super.interactionRect); Pen.fillColor_(Color.red); Pen.strokeColor_(Color.white); Pen.width_(symbolSize ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow