-
... nts.choose, window_size[1]/2 ); value = 0; win = Window("Diamond Slider", Rect(0, 0, window_size[0], window_size[1]), false); win.background_( Color.black ); slider = UserView( win, Rect( margin, margin, window_size[0] - (margin*2 ...
-
... .front }); if(w.isNil,{ w = window = GUI.window.new(name.asString ++ " server", Rect(10, named.values.indexOf(this) * 120 + 10, 390, 92)); w.view.decorator = FlowLayout(w.view.bounds); }); menu = Menu( MenuAction.separator( name.asString ), ...
-
... w, wgrav, world, obj, ploc, s= 1, f= 0.1; //--world w= RedWindow("pendulum 3d", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0, 0]; world= RedWorld(RedVector3D[width, height, depth], wgrav, 20, 0.01); //dim,grav,maxvel,damp w. ...
-
... w, wgrav, world, obj, ploc, s= 1, f= 0.1; //--world w= RedWindow("pendulum 3d", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0, 0]; world= RedWorld(RedVector3D[width, height, depth], wgrav, 20, 0.01); //dim,grav,maxvel,damp w. ...
-
... xes = Dictionary.new; handlers = IdentityDictionary.new; bounds = argbounds ?? {Rect(20, 20, min(numCols * 100,1000), numRows * skin.buttonHeight)}; bounds = bounds.asRect; // cargo-culted from thor <- best code comment ever bounds = Rect(b ...
-
... ht= 480, w, wgrav, world, n= 50, ploc; //--world w= RedWindow("pendulum test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.01); //dim,grav,maxvel,damp //--objec ...
-
... init { |s| settings = s ? DorotaAnalysisSettings.new; ^this; } build { |parent, rect, statusRect| var fftValues, currentFFT, currentIndex; fftValues = [4096, 8192, 16384]; currentFFT = settings.getFFT; currentIndex = fftValues.indexOf(curre ...
-
... ht= 480, w, wgrav, world, n= 50, ploc; //--world w= RedWindow("pendulum test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.01); //dim,grav,maxvel,damp //--objec ...
-
... = false; var rotAcc2Ground; var homogeneMatAcc2Ground; *initClass { regions = [ Rect(0,0,0.5,0.5), Rect(0.5,0,0.5,0.5), Rect(0,0.5,0.5,0.5), Rect(0.5,0.5,0.5,0.5) ]; } process { var newRegion = regions.detectIndex{|reg| reg.containsPoint(po ...
-
... Methods *new (parent, bounds) parent - The parent view. bounds - An instance of Rect , or a Point indicating width@height. ( w = Window .new.front; m = PopUpMenu (w, Rect (10,10,180,20)); m.items = [ "linear" , "exponential" , "sine" , "wel ...