-
... ar width= 300, height= 300, wgrav; //--world ~win= RedWindow("livecoding test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.4, 0.98]; ~world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //-- ...
-
... ight= 300, w, world, wgrav, obj, trg, mp; //--world w= RedWindow("spring test", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector2D[0, 0.98]; world= RedWorld1(RedVector2D[width, height], wgrav, 30, 0.8); //dim,grav,maxvel,d ...
-
... ouseY Apperance . bounds Get or set the position and dimension of the menu as a Rect . . font Get or set the Font . . hiliteColor Get or set the selection color. . icon Get or set the String used as branch indicator. By default this is "▶" ...
-
... an2.ar(z*e, pan)); }).add; s.sync; //--world w= RedWindow("rocks pinball test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; //world xy gravity world= RedWorld3(RedVector2D[width, height], wgrav, 15, 0.5); //dim,grav,ma ...
-
... os = [0.5,0.5]; ~nearests = [0,1,2]; ); ( w = Window.new("points of proximity", Rect(100, 100, ~size, ~size)).front; w.drawHook = { var thesize, y; Pen.color = Color.white; Pen.fillRect(Rect(0, 0, ~size, ~size)); x.do{|ax, index| y = 1 - ax ...
-
... lt= RedSmooth(0.1, 0.5); var number, slider, plot, fifo; number= NumberBox(win, Rect(10, 10, 90, 20)); number.value= flt.factor; number.decimals= 3; number.action= {|view| view.value= view.value.max(0); flt.factor= view.value; }; StaticText ...
-
... /redFrik 2012 ( var width= 640, height= 360, num= 200; var win= Window("red00", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physic ...
-
//redFrik 2012 ( var width= 640, height= 360, num= 10; var win= Window("red01", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physic ...
-
... w, world, acc, vel, loc, rep, n= 200; //--world w= RedWindow("repulsive test3", Rect(128, 64, width, height)).front; world= RedWorld(RedVector2D[width, height]); //dim,grav,maxvel,damp //--objects rep= RedObject(world, RedVector2D[width*0.5 ...
-
... ts in one Array. Example: Cocoa: NSWindow *c = [[NSWindow alloc] initWithContentRect: rect styleMask: 10 backing: 2 defer:YES]; SC: c = SCNSObject("NSWindow", "initWithContentRect:styleMask:backing:defer:",[Rect(0,0,400,100), 10, 2, 1]); De ...