-
... 8 rows: button, slider, button, knob with names origin = ~gap.copy, oneBound = Rect(0, 0, ~sliderWidth, ~buttonExtent.y), buttonExtent = ~buttonExtent, gap = ~gap.y, // must save colors because GUI object init runs in another proto ltAqua ...
-
... s ( //Setup GUI var nb1 = NumberBox(); var nb2 = NumberBox(); w = Window(bounds:Rect(200,200,200,100)).layout_( HLayout( StaticText().string_("Euro:"), nb1, StaticText().string_("Pound:"), nb2 ) ).front; ENdef(\x,{ var rate = 0.8; //euros v ...
-
... sh; }.defer; }); ^this; }); } *gui { var view; guiWin = Window("MultiTouchPad", Rect(100, 100, 525, 375)).onClose_({ guiOn = false; }); view = UserView(guiWin, guiWin.view.bounds).background_(Color.white).resize_(5); view.drawFunc_ ({ var f ...
-
... sh; }.defer; }); ^this; }); } *gui { var view; guiWin = Window("MultiTouchPad", Rect(100, 100, 525, 375)).onClose_({ guiOn = false; }); view = UserView(guiWin, guiWin.view.bounds).background_(Color.white).resize_(5); view.drawFunc_ ({ var f ...
-
... l.spline.points.last[0]}; splineGui = this.make2DSpline(focusedDim).gui(layout, Rect(0, 0, layout.bounds.width, layout.bounds.height - 25), model.spec, ControlSpec(0, maxTime)); splineGui.onSelect = { arg i; pointSelector.activeValue = if(i ...
-
... t color will be used instead. Class Methods Gradient. new ( color1 , color2 , direction: 'h' , steps: 64 ) Arguments: color1 An instance of Color . color2 An instance of Color . direction \h or \v for horizontal and vertical respectively. D ...
-
... dth= 640, height= 480, w, theta= 0, speed= 0.01, point; w= RedWindow("3Dpoint", Rect(128, 64, width, height)).front; point= Red3DPoint(RedVector3D[0, 0, 0.5]); //--loop w.draw{ theta= theta+speed; point.rotation= RedVector3D[theta, theta*2, ...
-
... dth= 640, height= 480, w, theta= 0, speed= 0.01, point; w= RedWindow("3Dpoint", Rect(128, 64, width, height)).front; point= Red3DPoint(RedVector3D[0, 0, 0.5]); //--loop w.draw{ theta= theta+speed; point.rotation= RedVector3D[theta, theta*2, ...
-
... randcreate.com/physics/ ( var width= 400, height= 400; var win= Window("cloth", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; var particles; var gridSize= 10; var spring_strength= 0.2 ...
-
... randcreate.com/physics/ ( var width= 400, height= 400; var win= Window("cloth", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; var particles; var gridSize= 10; var spring_strength= 0.2 ...