-
... --world w= RedWindow("wave phase test2", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0, 0.004]; world= RedWorld(RedVector2D[width, height], wgrav, 5, 0.8); //dim,grav,maxvel,damp //--objects {|i| var l ...
-
... se, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; usr.background= Color.red; physics= TraerParticleSystem(0, 0, 0, 0.1); usr.mouseDownAction= {|v, x, y| var p= physics.makeParticle(1.0.rrand(20), x, y, 0); p.age= m ...
-
... indow: WinBounds.showOrMake(\WinBounds_Test, restore: true, finishFunc: { |w| w.background_(Color(0.4, 0.8, 0.4)) } ); ⧉ ✔ WinBounds uses some extensions to the Window class : Window.find(\abc).do(_.front); Window.find(\nopey).do(_.front); ...
-
... se, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; usr.background= Color.red; usr.clearOnRefresh= false; physics= TraerParticleSystem(0, 0, 0, 0.4); usr.mouseDownAction= {|v, x, y| var p= physics.makeParticle(2.0.rr ...
-
... ibing the position of this view in the larger view container, used to calculate background color for ease of reading. sclorkChat The containing SCLOrkChat object, used in case chat has to send back any messages. Returns: A new SCLOrkChatMes ...
-
... lPosition hasSelection enterInterpretsSelection setFontFamily zoom editable pageBackgroundColor Actions onAudioMutedChanged onRecentlyAudibleChanged onContentsSizeChanged onScrollPositionChanged onSelectionChanged onJavaScriptMsg onLinkHove ...
-
... ance methods Examples w= RedWindow.new.front; w.resize(RedVector2D[200, 200]) w.background= Color.red w.draw{Pen.fillColor= Color.black; Pen.fillOval(Rect.aboutPoint(Point(175.rand, 175.rand), 50, 50))} w.play //start drawing w.stop ( //mou ...
-
... yout(n.bounds); v = { |i| DragBoth(n, Rect(0, i * 20, 200, 20)).align_(\center).background_(Color.rand) }.dup(5); StaticText.new(n,200@150).string_("hold down cmd and drag points from the slider to the drag slots, or reverse").stringColor_( ...
-
... is also possible to only provide an Array of strings. In this case, the GMStyle backgroundColor will be used as the state background, and the valueFontColor will be used as font color (see example below). . state Sets or gets the View 's cu ...
-
... 1 2 3 4 5 6 7 8 9 "; a = StaticText(w, 200@20).string_("The quick drowned fox").background_(Color.rand).align_(\center); b = Button(w, 200@20).states_([["The quick drowned fox"]]).background_(Color.rand); c = PopUpMenu(w, 200@20).items_(["T ...