Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... aPath| if(thisIMG.notNil) { this.free; }; thisSVGPath = aPath; thisIMG = Image.openSVG(aPath); thisSVGSize = Point( thisIMG.width, thisIMG.height ); this.prResizeSVG; } svgRatio { ^thisSVGRatio } svgRatio_ { |aFloat| thisSVGRatio = aFloat; ...

  2. RedIFS Doc

    ... ALLED! See also: RedMRCM , RedLTurtle , RedMandelbrot Description Plotting with Pen . After Flake - "The Computational Beauty of Nature". Class Methods . new Arguments: drawFunc A Function that draws something. It is passed a Point argument ...

  3. webMouse Quark

    ... works with touch on smartphones, here: "https://s4ntp.org/ntmi/play#username".openOS; // The webmouse message is: 0: message name \mouse 1: random influx chan 1, stays constant for this touch-sequence 2: random influx chan 2 for this touch ...

  4. Switch by simon (Dindoléon) Code

    ... r margin = view.bounds.height * 0.01; if( margin < 4, { margin = 4 } ); Pen.fillColor_( states[current_state][2] ); Pen.fillRect( Rect( 0, 0, view.bounds.width, view.bounds.height ) ); Pen.fillCo ...

  5. GMXYUserView Quark

    ... FUNCTIONS // ///////////////////////////// drawCircle { |position, symbolSize| Pen.addArc( position, (symbolSize / 2), 0, 2pi ); Pen.fill; if(super.outlineSize > 0) { Pen.addArc( position, (symbolSize / 2) - (super.outlineSize * 2), 0, 2pi ...

  6. XixiPainter Quark

    ... x, y, mod| drawList.do({ |object| object.mouseUp(x, y); }) }) .drawFunc_({ GUI.pen.color = background; // background color GUI.pen.fillRect(Rect(0.5, 0.5, rect.width-1, rect.height-1)); // background fill GUI.pen.color = Color.black; drawL ...

  7. ArrayEditView Quark

    ... fault ); size = this.object.size; view.fromBounds = Rect( 0, 1.1 ,size, -1.2 ); Pen.use({ points = this.points.asCollection.collect(_.asPoint); mean = object.mean; Pen.color = Color.gray(0.5,0.5); [ 0@0, "%", 0@1, "%", 0@ud, "%", 20@(object ...

  8. localDrawing Quark

    ... ing;\ var format = [340, 360];\ var colors = [ Color .black, Color .gray];\ var penWidth = 1;\ \ #e, f = [a, b].collect();\ \ \ \ // based on example of SCUserView \ drawing = \ | collective, i | \ \ var w, v, txt, tmppoints, undone, all, p ...

  9. SimpleDMXFixture Quark

    ... ); var fixtureBounds = Rect( extentHalf.x, extentHalf.y, *extentHalf.asArray ); Pen.use{ Pen.color = Color.black; Pen.fillRect(bounds); // color Pen.color = color; Pen.fillRect(colorBounds); // white Pen.color = white; Pen.fillRect(whiteBou ...

  10. MView Quark

    ... Pt; if (ghostPos.notNil) { xpos = ghostPos * width; centPt = xpos@(height*0.5); Pen.color_(dict[\ghostCol]); Pen.width_(1); Pen.addRoundedRect(Rect.aboutPoint(centPt, 8, height*0.5 - 2), 5, 5); Pen.addArc(centPt, 5, 0, 2pi); Pen.stroke; }; ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow