Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... e tab positions and orders focusHistory, <window, <context, // thu GUI COntext <pen, >closeIcon, >detachIcon, labelAlign=\auto, left = 0, // probably obsolete top = 0 // probably obsolete ; *new{ arg parent, bounds; ^super.new.init(parent, ...

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

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

  4. Recursion-toy-like vines with Pen by uiae (uiae) Code

    ... = that.scale; radius = that.radius * scale; // Draw outline Pen.line(that.ox@that.oy,that.x@that.y); // not in qt... if((GUI.scheme == "CocoaGUI") and: (radius > 5.0), { Pen.setShadow(1@1, scal ...

  5. 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 = (); // ...

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

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

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

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

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

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow