-
... lot; // there should have it ) // then you can freely access and set the slot directly - easier ( a.filters[0] = SCImageFilter .new( \CIColorInvert ); a.plot; ) // again ( a.filters[0] = SCImageFilter .new( \CIZoomBlur ); a.plot; ) // again ...
-
... aturationHelper Inherited instance methods Examples ( var win = Window.new( "", Rect(0, 400, 400, 400) ); var colorPicker = GMColorPicker() .action_({ |aColor| aColor.post; " is my favorite color !".postln; "".postln; }); // Nest it inside ...
-
... s { ^[] } forceTimes { // todo } length { ^paths.collect(_.length).maxItem; } asRect { ^if( paths.size > 0 ) { paths.collect(_.asRect).reduce(\union); } { Rect(0,0,0,0); } } name { ^"" } name_ { } type { ^\bspline } type_ { } curve { ^1 } c ...
-
... ne, tb, ve; var oneShot; var source = ~source; l = layout ?? {PageLayout("CC", Rect(0, 0, 500, 600))}; tb = ToggleButton(l, "Learn", { oneShot = CCResponder({ |port, chan, num, value| source.matchEvent = MIDIEvent(nil, port, chan, num, nil ...
-
... rph.updatedContacts.keysValuesDo({|k, me| Pen.color = contactColor; Pen.addOval(Rect.aboutPoint(([me.x, me.y] * [width, height]).asPoint, me.force * 1000, me.force * 1000)); Pen.fill; Pen.color = avgColor; Pen.line(([me.x, me.y] * [width, h ...
-
( //--settings var prefName= "startMenuPref.json"; var winRect= Rect(1, Window.availableBounds.height, 240, 320); //x, y, w, h //--functions and objects var keyFunc; var keyLookup= (); var prefDict; var themes= SGUI.themes.keys.asArray.sort ...
-
... tton states on the fly. ( var update, w, b; w = SCWindow .new( "State Window" , Rect (150, SCWindow .screenBounds.height-140,380,60)); // a convenient way to set the button label update = { |but, string| but.states = [[string.asString, Colo ...
-
... e it conveniently on the screen if the bounds are a Point . If the bounds are a Rect , then the Rect determines the window bounds. bounds An instance of Rect or Point . Default value is 160@20 . label The label. Default value is nil . If ni ...
-
... sound).end(1) }; u.background = Color.blue(0.5); u.animate = true; k = Rect(100, 100, 50, 50); u.drawFunc = { var osc = Ndef(\osc).bus.getSynchronous * 0.5 + 0.5; Pen.strokeColor = Color.blue; Pen.addOval(k); Pen ...
-
... eIsMapped_( false ) .numChannels_( 2 ) .setSpec( \value, DisplaySpec( PointSpec(Rect(0,0,1,1)), { |point| "% @ %".format(point.x, point.y ) }) ) .setDefault( \value, 0.0@0.0 ) .setDefault( \center, 0.0@0.0 ) .setDefault( \radius, 10@10 ) .s ...