-
WFSPathGeneratorDef( \line, { |f, path, n| var start, end, curve; start = f.get( \start ); end = f.get( \end ); curve = f.get( \curve ); path.positions = n.collect({ |i| Point( i.lincurve(0,n-1,start.x,end.x,curve.x), i.lincurve(0,n-1,start ...
-
... to, s.addr, otherClientID: r.nextFreeID); r.servers z = RepublicServerGui(r); z.lines */ RepublicServerGui : JITGui { var <homeZone, <lines; *new { |object, numItems = 6, parent, bounds, makeSkip = true, options = #[]| ^super.new(object, nu ...
-
... / 12).ceil * 12).min(127); }; valRange = maxVal - minVal; step = 1/valRange; // lines if( grid == true ) { // big red for C3 if( 60.inRange( minVal, maxVal ) ) { Pen.color = Color.red.alpha_(0.5); c3y = (((60 - minVal) * step) * bounds.heig ...
-
ArrayGeneratorDef( \line, { |f, n = 1| var a, b, curve; if( f.get( \direction ) == \down ) { #b, a = f.get( \range ); } { #a, b = f.get( \range ); }; curve = f.get( \curve ); n.collect({ |i| i.lincurve( 0, n-1, a, b, curve ); }); }, [ \rang ...
-
... _(0.25); if( viewRect.width < (this.view.bounds.width/4) ) { width.do({ |i| Pen.line( (i + left) @ top, (i + left) @ bottom ); }); Pen.stroke; } { if( viewRect.width < (this.view.bounds.width/0.4) ) { (width/10).ceil.do({ |i| i = i*10; Pen. ...
-
... floor Pen.addRect(Rect.aboutPoint(0@0,f*world.dim.y/2,f*world.dim.x/2)); //wall lines Pen.line(Point(world.dim.y/2,world.dim.x/2),Point(f*world.dim.y/2,f*world.dim.x/2)); Pen.line(Point(world.dim.y/2.neg,world.dim.x/2),Point(f*world.dim.y/2 ...
-
... will not fit nicely on button. One or two short words are best. You can force a line break in the string using \n if needed. // examples for help file: /* ( z.changeButtonLabel(midinote: 36, string: "POPCORN \n WOW"); z.changeButtonLabel(mi ...
-
... 10-1301, USA. */ CollidingControl{ var ctlKeys; var <>view; var colorIsSet; var lineIsNew; var synths; var <app; *new{|app, player| ^super.new.init(app) } init{|anApp| app = anApp; this.initMIDI; } initMIDI{ MIDIClient.init; MIDIIn.connectA ...
-
... dict, path| var string, file; string = "---\nlayout: controllers\n" ++ //single line [ \title, \hwInterface, \vendorURI, \manual, \type, \imageFilename, // \hasScribble, \descEditPath, \scribbleFilename ].inject("", {|last, key| var val = d ...
-
Log : Singleton { classvar defaultFormatter, splitLineFormatter, onErrorAction, <levels, exceptionHandler, globalLogFile; var <>actions, <>formatter, <>shouldPost = true, <>maxLength = 500, <lines, <level, levelNum, <splitLines=false, <>unp ...