-
... , (Window.screenBounds.height/2)-(height/2), width, height), false).front; u = UserView(w, Rect(0, 0, width, height)); u.background = Color.white; u.animate = true; u.frameRate = 60; u.drawFunc = { // update paddle position 2.do{|i ...
-
... Point(0,0)); }, '/viz'); w = Window(bounds: Rect(0, 0, 1920, 780)); v = UserView(w, w.view.bounds); v.background_(Color.white); v.animate_(true); v.drawFunc_({ var startPoint = Point(~allPoints[0].x,~allPoints[0].y); Pen ...
-
... ndow_size variable according to the size you want the module to have. slider = UserView( win, Rect( margin, margin, window_size[0] - ( margin * 2 ), window_size[1] - ( margin * 2 ) )); // Here is the function used to draw the custom sli ...
-
... ttext.string = " Time range: "; ftext.string = " Bin freq: "; spctrgrm = UserView(win, Rect(30, 400, xs, ys)); spctrgrm.background = Color.black; spctrgrm.drawFunc = { nx.do{ |x| ny.do{ |y| var m = spectrumArray[x][y] ...
-
... Top = true; w.view.decorator_(FlowLayout(w.bounds,4@4, 4@4)); ~topPanel = UserView(w, 494@45).background_(Color.rand(0.7,0.9)); ~topPanel.decorator_(FlowLayout(~topPanel.bounds, 4@4, 4@4)); ~subPanel= Array.fill(4, { arg view; ...
-
... } )}, '/gui'); w = Window(bounds: Rect(0, 0, width, height)); v = UserView(w, w.view.bounds); v.animate = true; v.background = colors['background']; label = StaticText(v, Rect(40, 15, width-40, 50)); label.font = ...
-
... eVals[i]) }) }) }) ++ [nil]; // env view guiData.envView = UserView().background_(Color.white) .minWidth_(520).minHeight_(250).maxHeight_(600) .drawFunc_({arg view; var margin = 4; var width = view.bounds. ...
-
... ht), resizable: false).visible_(false).userCanClose_(false); gui.space = UserView(gui.win, Rect(235, 5, guipoints, guipoints)).backColor_(Color.black); // ----- source panel top StaticText(gui.srctop, Point(70, 30)).string_("So ...
-
... Rect(150,423,420,462)); ~cloudView.view.background_(Color.white); ~clow = UserView(~cloudView, Rect(15, 15, 390, 432)); ~clow.background = Color.new255(190, 190, 190); ~clow.drawFunc = {Pen.color = Color.white; Pen.addRect ...