-
... |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( ...
-
... 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, ...
-
... inlets, outlets); }, save: { [] }, load: { MxChannelInput.new } /*, draw: { arg pen, bounds, style; ~source.draw(pen, bounds, style) } */ ));
-
... 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) ) ...
-
... 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| ...
-
... 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 ...
-
... 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[ ...
-
... 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, ...
-
... // 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; ...
-
... 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 ...