Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... |str, i| numAppearance = numbers[i]; val = countSpec.unmap(numAppearance); GUI.pen.font = GUI.font.new(fontName, (sizeSpec.map(val)).asInteger); GUI .pen.color = Color .red(colorSpec.map(val), alphaSpec.map(val)); GUI.pen.stringCenteredIn( ...

  2. JITView Quark

    ... dict[\hiRect] = dict[\bounds00].copy .width_(dict[\width] * 0.5); } drawLabel { Pen.stringLeftJustIn( dict[\label], dict[\boundsLabel], dict[\font], dict[\labelCol] ); } adjustFont { |str, font, rect| var drawSize = QtGUI.stringBounds(str, ...

  3. MxChannelInput Quark

    ... inlets, outlets); }, save: { [] }, load: { MxChannelInput.new } /*, draw: { arg pen, bounds, style; ~source.draw(pen, bounds, style) } */ ));

  4. EnvView Quark

    ... Nil ) { curves = env.curves.asCollection.wrapExtend(env.times.size); if( Env.shapeNumber( curves[selectedLine] ) == 1 ) { curves[selectedLine] = 0; }; if( curves[selectedLine].isNumber ) { if( pts[selectedLine].y > (pts[selectedLine+1].y) ) ...

  5. XiiQuanoon Quark

    ... w(win, Rect(10,10,280, 680)) .canFocus_(false) .drawFunc_({ if(GUI.id==\cocoa, {Pen.setShadow(1@1, 5, Color.black) }); GUI.pen.translate(0.5,0.5); 8.do({|i| GUI.pen.line(Point(30+(i*30), 10), Point(30+(i*30), 670)) }); // strings 6.do({|i| ...

  6. ParaSpace Quark

    ... r_(Color) - The background color of the view. setBackgrDrawFunc_(func) - Allows Pen to draw behind the nodes and connections. setSelectFillColor_(Color) - The color of the rect when selecting nodes. setSelectStrokeColor_(Color) - The stroke ...

  7. UScoreEditorGUI_TranportBar Quark

    ... var radius = size/6; var corners = [ -1 @ 0, -1 @ -2, 1 @ -2, 1 @ 0 ] * radius; Pen.use({ Pen.translate( *rect.center.asArray ); Pen.fillRect( Rect( size.neg * 0.25,0, size / 2, size / 3 ) ); 2.do({ Pen.moveTo( corners[0] ) .arcTo( corners[ ...

  8. sGliss Quark

    ... SGUI.report(win); SGUI.adapt(win); backgroundImage= Image(500, 500).draw({|img| Pen.width= 0.25; Pen.strokeColor= palette.highlight; 60.do{ Pen.moveTo(Point(25.gauss(25), 25.gauss(25)+img.height)); Pen.curveTo( Point(25.gauss(25)+img.width, ...

  9. extServerGui Quark

    ... // var thisSize, rect, endYTabs; // xtabs = xtabs + 1; // ytabs = ytabs + 1; // Pen.font = Font("Helvetica", 11); // group.do({|node| // if(node.value.isArray, { // // thisSize = countSize.value(node); // endYTabs = ytabs + thisSize + 0.2; ...

  10. LSPlant Quark

    ... Stack, offspring; var win, view, drawRoutine, <>speed, colorFunc; var willDraw, penDown; *new {|argStartPoint, argInitHeading, argAngle, argWinBounds, argColor| ^super.new.init ( argStartPoint, argInitHeading, argAngle, argWinBounds, argCol ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow