Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... .75)) .align_(labelAlign) .font_(Font("Helvetica", labelSize)) .string_(""); // Pen draws in here usrView = UserView(compView, Rect(0, txtH, size, size)).canFocus_(false); scs= Discs.new; // does the interval calcs dotsColFn = { Color.blue ...

  2. SmoothSlider Quark

    ... dius; var baseRect, knobRect; var center, strOri; var bnds; // used with string Pen.use { rect = this.drawBounds; drawBounds = rect.insetBy( border, border ); if( orientation == \h ) { drawBounds = Rect( drawBounds.top, drawBounds.left, dra ...

  3. WFSRectView Quark

    ... le = 1| var points; var selectColor = Color.yellow; scale = scale.asArray.mean; Pen.use({ Pen.width = 0.164; Pen.color = Color.red(0.5, 0.5); //// draw configuration (WFSSpeakerConf.default ?? { WFSSpeakerConf.rect(48,48,5,5); }).draw; // d ...

  4. RoundNumberBox Quark

    ... height/4).min( rect.width/2 ) }; /* if( this.hasFocus ) // rounded focus rect { Pen.use({ Pen.color = focusColor ?? { Color.gray(0.2).alpha_(0.8) }; Pen.width = 2; Pen.roundedRect( rect.insetBy(-2,-2), radius + 1 ); Pen.stroke; }); }; */ if ...

  5. MultiPlot Quark

    ... rect = w.view.bounds.insetBy(10,10); if( background.notNil ) { background.set; Pen.fillRect( rect ); }; Color.black.alpha_(0.5).set; Pen.strokeRect( rect ); this.inRect( arrays, rect, colors, hLinesAt, vLinesAt, linesAlpha, discrete, min, ...

  6. extStenoPlot Quark

    ... prevNodes[in]; curNode = Point(out + 1, i + 1) * mul; prevNodes[out] = curNode; Pen.color = Color.white; Pen.moveTo(curNode); Pen.addOval(Rect.aboutPoint(curNode, nodeSize, nodeSize)); Pen.moveTo(curNode); if(name != '?') { Pen.stringAtPoin ...

  7. SETO_GUIObj Quark

    ... in_(true) obj.clearOnRefresh_(true); this.updateBounds; obj.drawFunc_({|me| GUI.pen.use{ setObj.isEuler.if({ // GUI.pen.color = Color.hsv(setObj.rotEuler[0]*2pi.reciprocal % 1, 0.43, 0.87); GUI.pen.color = Color.hsv(setObj.classID+1 * 0.2, ...

  8. GMKeyboard Quark

    ... imerColor( blinkTimer, thisBlackKeyColor, thisBlinkColor, highlight ); }; }; }; Pen.moveTo( aRect.leftTop + Point(outlineSize / 2, outlineSize / 2); ); Pen.lineTo( aRect.rightTop + Point((outlineSize / 2).neg, outlineSize / 2); ); Pen.lineT ...

  9. interpolate Quark

    ... , 388@200 ]; j = nil ; r = 7; u.drawFunc_({ |uvw| Color .black.alpha_(0.5).set; Pen .line( 0@200, 400@200 ).stroke; p[[0,3]].do({ |point, i| Pen .addArc( point, r, 0, 2pi ).stroke; }); if( m.value == 0 ) { Color .red.set; Pen .line( p[0], p ...

  10. 053-boids_1d Quark

    ... (world, RedVector[0, 0]); //hidden attractor //--loop w.draw{ att.loc= w.mouse; Pen.fillColor= Color.grey(1, 0.5); Pen.strokeColor= Color.white; world.objects.do{|o, i| var xy; var trg= o.addForceWander1D; o.addForceArrive(att.loc[0]); o.up ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow