Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... deviceValue.collect { |val| (val.round(0.001).asString ++ " ").clipExtend(5) }; Pen.stringCenteredIn(string.join(" "), uv.bounds.extent.asRect, Font(Font.defaultMonoFace, 16.5), Color.green); }; uv.frameRate_(10).animate_(true); butzone.add ...

  2. RedBMP Quark

    ... )}; var win= Window(this.class.name, b); var img= this.asImage; win.drawFunc= { Pen.drawImage(Rect(0, 0, win.bounds.width, win.bounds.height), img); }; win.onClose_({img.free}); win.front; ^win; } makeWindow {|bounds| var b= bounds ?? {Rect ...

  3. XiiSounddrops Quark

    ... e) .drawFunc_({ |view| if(backgrounddraw == true, { if(selectall == true, { GUI.pen.fillColor = XiiColors.lightgreen; },{ GUI.pen.fillColor = Color.white; }); GUI.pen.fillRect(Rect(0, 0, 680, 200)); backgrounddraw = false; // never draw thi ...

  4. Red4D Quark

    ... dist); Point(v[0], v[1])*size; }; } draw {|dotSize= 5| renderedPoints.do{|p, i| Pen.fillOval(Rect.aboutPoint(p, dotSize, dotSize)); }; } }

  5. TextFieldOld Quark

    ... UserView(parent, bounds).background_(Color.black).canFocus_(true) .drawFunc_({ Pen.color_(background).fillRect(innerBounds) .color_(drawColor) .stringAtPoint(string, Point(1, 1)) }); // text = StaticText(view, bounds.insetBy(1, 1).moveTo(1 ...

  6. TextFieldOld Quark

    ... UserView(parent, bounds).background_(Color.black).canFocus_(true) .drawFunc_({ Pen.color_(background).fillRect(innerBounds) .color_(drawColor) .stringAtPoint(string, Point(1, 1)) }); // text = StaticText(view, bounds.insetBy(1, 1).moveTo(1 ...

  7. XiiQuarks Quark

    ... rID nr 840 // NEW IN VERSION 2: // Amp slider in Recorder and in BufferPool // Open sounds folder in Player // two new instruments: LiveBuffers and Mushrooms // Fixing loading of bufferpools (instruments would automatically load new sound) ...

  8. GMButton Quark

    ... hisSVGPath == "").not) { thisSVG.free; }; thisSVGPath = aPath; thisSVG = Image.openSVG(thisSVGPath); thisSVGSize = Point(thisSVG.width, thisSVG.height); this.resizeSVG; } free { if(thisSVGPath != "") { thisSVG.free; thisSVGPath = ""; this.r ...

  9. extColPen-asSVGFile Quark

    + ColPen { *asSVGGroup { |clear = true, inCmds, index = 0, inTransform| var group, currentColor = Color.black, currentFillColor, currentWidth = 1; var currentPath, currentTransform, np, nt, cStart, cEnd; var font; font = Font.default ?? { F ...

  10. clock Quark

    ... nt); font.size_((font.size * (uv.bounds.width * 0.9 / strBounds.width)).round); Pen.stringCenteredIn(timeStr, uv.bounds, font, Color.white) }); NTMI.g.clok.but = Button( NTMI.g.clok.zone, NTMI.g.clok.uv.bounds.top_(NTMI.g.clok.extent.y * 0. ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow