-
... they work w.view.decorator = FlowLayout ( 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 ...
-
... idth@height. ( w = Window .new; c = CompositeView (w, Rect (0,0,300,300) ); a = Slider2D (c, Rect (10,10,100,100) ); b = Slider2D (c, Rect (110,110,100,100) ); w.front; ) Coordinate System Containers use relative coordinates, i.e. views are ...
-
Slider2D a cross-platform redirector for a GUI widget Inherits from: Object : ViewRedirect This class will return the gui kit specific version of a Slider2D. See also: GUI , GUI-Classes , GUI-Overview Examples and Documentation: For example ...
-
... educed. Examples ( w = Window .new; b = ScrollView (w, Rect (0,0,150,100)); c = Slider2D (b, Rect (0,0,100,100)); d = Slider2D (b, Rect (100,0,100,100)); w.front; ) w.view.background = Color .white; b.background = Color .grey; d.bounds = Re ...
-
... width@height. ( w = Window ( "2DSlider" , Rect (100,100, 140 ,140)).front; t = Slider2D (w, Rect (20, 20,80, 80)) .action_({ |sl| [ \sliderX , sl.x, \sliderY , sl.y].postln; }); ) Accessing Instance and Class Variables x x_ (val) The horiz ...
-
... ; [c, d].postln ) ( var w, k, c, d, e, c1, c2, f, g; w = Window .new.front; k = Slider2D (w, Rect (50,50,300,300)); f = { c = Color .rand; d = c.vary(0.5); e = d.vary(0.5); }; g = { c1 = d.hueBlend(e, k.y).round(0.01); c2 = c.hueBlend(e, k. ...
-
... ; [c, d].postln ) ( var w, k, c, d, e, c1, c2, f, g; w = Window .new.front; k = Slider2D (w, Rect (50,50,300,300)); f = { c = Color .rand; d = c.vary(0.5); e = d.vary(0.5); }; g = { c1 = d.hueBlend(e, k.y).round(0.01); c2 = c.hueBlend(e, k. ...
-
... RangeSlider SCRangeSlider JSCRangeSlider horizontal or vertical interval slider Slider2D SC2DSlider JSC2DSlider a horizontally and vertically moveable slider TextField SCTextField JSCTextField an editable one line text field ListView SCList ...
-
... w = Window (scroll: true ); // you must set this when the window is created c = Slider2D (w, Rect (0, 0, 1500, 300)); d = Slider (w, Rect (0, 310, 20, 300)); c.background = Color .grey.alpha = 0.6; d.background = Color .grey.alpha = 0.6; w. ...
-
... ckground) }; // Points used, since the layout is handled by a decorator. 18.do{ Slider2D (y,58@58).background_( Color .rand); }; ) Container Coordinates Container and User views use relative bounds coordinates, which are measured from the p ...