-
... /redFrik 2012 ( var width= 640, height= 360, num= 100; var win= Window("red02", 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 ...
-
... ing and archiving write rendering plot draw drawStringAtPoint drawAtPoint drawInRect tileInRect Instance Methods / accessing and setting pixels setPixel getPixel setColor getColor pixels loadPixels setPixels pixelRatio Inherited instance me ...
-
... ht= 300, w, wgrav, world, n= 6, rocks= 10; //--world w= RedWindow("rocks 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 ...
-
... escription The Window is the most fundamental element of the GUI. It occupies a rectangular space on the screen within which other GUI elements (Views) are displayed. A child view is added into a window by passing the window to the view's c ...
-
... 300, height= 300, w, wgrav, world, n= 5; //--world w= RedWindow("boids test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 10, 0.05); //dim,grav,maxvel,damp //--objec ...
-
... 600, height= 300, w, world, n= 15, att; //--world w= RedWindow("boids test 1d", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector[width], nil, 10, 0); //dim,grav,maxvel,damp //--objects { var loc= RedVector[width].rand; var ve ...
-
... stance methods Examples Basic Example ( w = Window.new.front; a = StaticText(w, Rect(10, 10, 200, 20)); a.string = "Rolof's Rolex"; ) // adjust look, alignment and content a.background = Color.grey; a.align = \center; a.font = Font("Monaco" ...
-
... world, wgrav, objs, sprs, trg, mp, n= 8; //--world w= RedWindow("more springs", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector2D[0, 0]; //no gravity world= RedWorld1(RedVector2D[width, height], wgrav, 30, 0.8); //dim,gra ...
-
... et the shape that will be drawn for each point. Arguments: method One of: [\fillRect, \fillOval, \strokeOval, \strokeRect] . symbolSize Size in pixels of the shape plotted for each point Arguments: val pixels . symbolColor Color of the shap ...
-
... 40, freq2), 0, amp), pan ) ); }).add; s.sync; //--world w= RedWindow("3d test", Rect(128, 64, width, height)).front; wgrav= RedVector3D[0.1, 0.98, 0.1]; world= RedWorld3(RedVector3D[width, height, depth], wgrav, 20, 0.1); //dim,grav,maxvel, ...