Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... eil.do({ |i| (bounds.width/tileSize).ceil.do({ |ii| if( ((i + ii) % 2) == 1 ) { Pen.addRect( Rect( ii * tileSize, i * tileSize, tileSize, tileSize ) ); }; }); }); Pen.fillAxialGradient( bounds.leftBottom + (0@(tileSize.neg)), bounds.leftTop ...

  2. XiiPitchCircle Quark

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

  3. remoteDrawing Quark

    ... ing;\ var format = [340, 360];\ var colors = [ Color .black, Color .gray];\ var penWidth = 1;\ \ \ // based on example of SCUserView \ drawing = \ | collective | \ \ var w, v, txt, tmppoints, undone, all, participation;\ tmppoints = (); // ...

  4. RedMstGUI Quark

    ... .3; var outer= view.bounds.height*0.5; var slice= 2pi/RedMst.clock.beatsPerBar; Pen.color_(colFore); RedMst.clock.beatsPerBar.do{|x| Pen.addAnnularWedge( midPnt, inner, outer, x*slice+1.5pi, slice ) }; Pen.stroke; Pen.addAnnularWedge( midPn ...

  5. GMColorPicker Quark

    ... super.interactionRect.width * colorPickerWidth) - (margin * 1.5)).do({ |xIndex| Pen.addRect( Rect( super.interactionRect.left + margin + xIndex, yOrigin, 1, ( (super.interactionRect.height - (margin * 3)) * (1 - previewHeight) ) ); ); Pen.f ...

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

  7. ScatterView2 Quark

    ... {|view| var mult = view.bounds.extent.asArray; // clipping into the boundingbox Pen.addRect( view.bounds.moveTo( 0, 0 )); Pen.clip; // draw Background Pen.color = background; Pen.addRect( view.bounds.moveTo( 0, 0 )); Pen.fill; normedData.do ...

  8. sKeyboard Quark

    ... s.height); blackKeySize= Size(whiteKeySize.width*0.6, whiteKeySize.height*0.6); Pen.push; x= 0; Pen.strokeColor= Color.black; keys.do{|key| var strRect, velPoint; if(key.isWhite, { key.put(\rect, Rect(x, 0, whiteKeySize.width, whiteKeySize. ...

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

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

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow