-
... 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; physics= TraerParticleSystem(0.1, 0.2, 0.3, 0.9); num.do{phys ...
-
... 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; physics= TraerParticleSystem(0.2.rand2, 0.2.rand2, 0, 0.4); n ...
-
... ds ); } init { |parent, bounds| view = CompositeView( parent, bounds ); uview = UserView( view, view.bounds.moveTo(0,0) ).enabled_( true ); uview.mouseUpAction_({ |vw ...args| mouseUpAction.value( this, *args ); action.value( this, *args ); ...
-
... 2 - added RedMRCM and RedIFS 090521 - RedWindow and RedJWindow now draws in the UserView - thanks Thor 090514 - growth example and asPoint added to RedVector 090510 - added RedLSystem and RedLTurtle classes updated example 070-lsystem.scd e ...
-
... 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; physics= TraerParticleSystem(0.1, 0.2, 0.3, 0.1); num.do{|i| ...
-
... var win= Window("red03", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.1, 0.2, 0, 0.1); num.do{|i| ph ...
-
... perior topPanelBounds = Rect(0, 0, window.bounds.width, halfHeight); topPanel = UserView(compositeView, topPanelBounds) .canFocus_(true); topPanel.mouseDownAction_({|view, x, y, modifiers, buttonNumber, clickCount| var factor = 2; if(clickC ...
-
... win= Window("Simple Pendulum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, p, anchor, s; usr.background= Color.white; physics= TraerParticleSystem(gy:1, drag:0.05); p= physics.make ...
-
... ildren[1]; ^this.new(sliderZone, slider.bounds); } init { |parent, bounds| uv = UserView(parent, bounds); uv.background_(Color(1,1,1,0)); uv.acceptsMouse_(false); // horizontal for now: uv.drawFunc = { |uv| var bounds = uv.bounds; var maxwi ...
-
... 200, width, height), resizable: false, border: false).front.fullScreen; view = UserView(window, Window.screenBounds()).background_(bgcolor).clearOnRefresh_(refresh); if(hideCursor == true, { SCNSObject("NSCursor", "hide"); }); bounds = Win ...