-
... se \; \;\ \ w.view.decorator = FlowLayout (w.view.bounds);\ w.view.background = Color .grey(0.8);\ \ w.view.decorator.shift(10, 0);\ \ SCButton (w, Rect (0,0, 60, 35)).states_([\ [ "ping" , Color .black, Color .clear]\ ]).action_(\ sync.pin ...
-
... ( rect ); } } *extrudedRect { |rect, radius, width = 2, angle, inverse = false, colors| //var centers; var points, cornerFunc, sidesFunc, rpt1, rpt2, width2; angle = angle ? 0.17pi; /* if( GUI.scheme.id === \swing ) // should be swing compa ...
-
... Float . x x_ (val) The x offset of the scope in samples. val - An Integer. waveColors waveColors_ (arrayOfColors) arrayOfColors - An Array of Color s. [ color1, color2, color2, ...], corresponding to the number of channels. Subclassing and ...
-
... | // elvw.view.view.drawFunc = { |vw| // var value = elvw.element.value; // var color = Color.hsv(value, 1, 1, 1); // vw.background_(color); // }; // }; g.guiXOSC.views[27 + (0..3)].do { |elvw, i| var mappe = ItemsSpec( [Color.grey, Color.g ...
-
... { cueTrigger = cuePlayer.guiInstance.cueTrigger; } } create { arg duration = 5, color = Color.white, width = 2; if(active and:{cueTrigger.lrgCueWin.notNil}, { this.animation(duration, color, width); }); } animation { arg duration = 5, color ...
-
... >preSatCol, <>satCol; var <uv, <preAmp = 0, <postAmp = 0; *initClass { preCol = Color.yellow(1.0, 0.4); postCol = Color.green(0.7, 0.4); preSatCol = Color.red(1, 0.4); satCol = Color.red(1, 0.6); } *new { |parent, bounds| ^super.new.init(pa ...
-
... riableName)); guiElements[item.orbitIndex][\orbitLabel][\element].background = (Color.fromHexString(item.get(\color))); guiElements[item.orbitIndex][\colorPicker][\element].setColorFromHexString(item.get(\color)); }); }; ); if (eventName == ...
-
+ Color { test { var window, tileSize = 50; window = Window( this.asString ).front; window.drawHook = { |vw| var bounds; bounds = vw.view.bounds; if( alpha < 1 ) { // transparency grid (bounds.height/tileSize).ceil.do({ |i| (bounds.width/ti ...
-
... wLayout(w.view.bounds, 10@10, 20@5); 16.do{ Slider2D(w.view, 80@80).background_(Color.rand) }; ) ⧉ ✔ You can also write: ( w = Window.new.front; w.addFlowLayout(10@10, 20@5); // a shortcut method, see SCContainerView 16.do{ Slider2D(w.view, ...
-
... button shape becomes a circle: c = SmoothButton ( w, 20 @ 20 ).states_([[ "x" , Color .red( 0.5 ), Color .gray( 0.6 ) ]] ); SmoothButton also supports icons from DrawIcon . If the button state name is a Symbol it is replaced by an icon with ...