-
... { w.refresh; t = t.not; u.animate = t; } }; u = UserView(w, w.view.bounds); u.background = Color.black; u.animate = t; u.frameRate = 30; u.clearOnRefresh = false; u.drawFunc = { |view| var i = view.frame; var ypos = i % 500; var ...
-
... _( hiliteColor.alpha * 0.5 ); var rect, fillRect, fillRect2, fillColor; // only background shape is different Pen.fillColor = hexColor; Pen.addArc(center, center.y, 0, 2pi); Pen.fill; if( pressed ) { Pen.width = 4; Pen.strokeColor_(hiliteCo ...
-
... p their names Window .allWindows.collect({ arg w; w.name }).postln; ( // change background colors of all open windows Window .allWindows.do({ arg window; window.view.background = Color .new(0.5 + 0.5.rand, 0.5 + 0.5.rand, 0.5 + 0.5.rand); } ...
-
... set(x, (y / 512) * 2 - 1); }; // animate, to cope with the mouse changes u.background_(Color.black); u.animate_(true); u.drawFunc = { |u| Pen.strokeColor = Color.white; Pen.moveTo( Point(0, a[0]) ); a[1..].do{ |value, index| Pe ...
-
... ow; GUI.dragSink.new(~midiControlFlow, 80@20).string_("reset").align_(\center) .background_(Color.new255(190, 198, 225)).stringColor_(Color.new255(191, 0, 0)) .action_({ |drag| try { drag.object.reset }; drag.string = "reset"; }); GUI.dragS ...
-
... t); msgBox = StaticText(w, Rect(905, 220, 620, 40)) .stringColor_(Color.black) .background_(Color.gray); }); this.post("ready"); } post{|str| msgBox.string_(str); } }
-
... (l.size-1); // now BREAK. job done }; }); }); }; //selected.postln; // mouse on background? if ( selectionflag == 1, { selection.start(x,y) }); } initInstances // graphical elements of GUI { // set classvars XiiSlicerRect.canvasBounds = can ...
-
... ow; GUI.dragSink.new(~midiControlFlow, 80@20).string_("reset").align_(\center) .background_(Color.new255(190, 198, 225)).stringColor_(Color.new255(191, 0, 0)) .action_({ |drag| try { drag.object.reset }; drag.string = "reset"; }); GUI.dragS ...
-
... To(0,0) ) .fromBounds_( Rect.aboutPoint( 0@0, 100, 100 ) ) .keepRatio_( true ) .background_( Color.white.alpha_( 0.25 ) ) .drawFunc_({ |vw| var path; path = this.wfsPath; if( path.isWFSPath2 && { path.exists } ) { Pen.width = 0.164; Pen.col ...
-
... checkable_(true) .action_({ |a, enabled| if (enabled) { "Enabled".postln; ~view.background = Color.green(1, 0.5); } { "Disabled".postln; ~view.background = Color.clear; } }) ); ~view.front; ) ⧉ ✔ Action help strings ( ~view = View(bounds: 3 ...