Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ) * 1.1); //curve var rhoToLength = bentRho * ((headRadius * 0.6) - halfWidth); Pen.push; Pen.translate(halfWidth, halfWidth); // background circle Pen.strokeColor = midGrey; Pen.width = fieldSize * 0.15; Pen.addOval(Rect.aboutPoint(Point(0 ...

  2. XiiDrawer Quark

    ... y| all = all.add(tmppoints.copy); tmppoints = []; v.refresh; }) .drawFunc_{|me| Pen.use { //Color.white.set; Pen.color = Color.white; Pen.fillRect(me.bounds.moveTo(0,0)); Pen.width = 1; Pen.color = Color.black; //Color.black.set; Pen.beginP ...

  3. SETOgui Quark

    ... strokeColor = Color.gray(0); var textColor = Color.gray(0.4); var extent = 40; Pen.strokeColor = Color.black; Pen.addRect(Rect(0, 0, me.bounds.width, me.bounds.height)); Pen.stroke; tServer.visibleObjs.do{|obj| Pen.use{ Pen.translate( obj. ...

  4. WindowHandleView Quark

    ... wBorder { var b, w, h; b = this.bounds.moveTo(0, 0); w = b.width; h = b.height; Pen.strokeColor = Color.grey(0.1, 0.3); Pen.line(0@h, 0@0); Pen.line(0@0, w@0); Pen.stroke(); Pen.strokeColor = Color.grey(0.5, 0.2); Pen.line(w@0, w@h); Pen.li ...

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

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

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

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

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

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

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow