-
... var win= Window("Bouncy Balls", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var mouse, b, c; var physics; var handleBoundaryCollisions; usr.background= Color.white; physics= TraerParticleSystem. ...
-
... - 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. ...
-
... clear; fillcolor = Color.yellow; fillmode = true; state = false; mouseTracker = UserView.new(win, bounds) .canFocus_(false) //.relativeOrigin_(false) .mouseDownAction_({|me, x, y, mod| if(mod == 262401, { // right mouse down // rightDownAct ...
-
... perior topPanelBounds = Rect(0, 0, window.bounds.width, halfHeight); topPanel = UserView(compositeView, topPanelBounds) //.background_(Color.red) .canFocus_(true); topPanel.mouseDownAction_({|view, x, y, modifiers, buttonNumber, clickCount| ...
-
... r; // Crear una vista personalizada para la barra de progreso progressBarView = UserView(window, Rect(50, windowHeight - 50, windowWidth - 100, 20)) .background_(Color(0.8, 0.8, 0.8)) // Fondo de la barra de progreso .drawFunc_({ |view| var ...
-
... it(server) } init {|server| tServer = server; window = Window.new.front; view = UserView(window, window.view.bounds).background_(Color.white); fillColors = [ Color(0.367, 0.713, 0.714, 0.5), Color(0.854, 0.765, 0.383, 0.5), Color(0.849, 0.8 ...
-
... aticText(zone, Rect(0,0, 50, 20)) .font_(font).string_("weights"); inNameView = UserView(zone, Rect(0,0, 200, 20)) .resize_(2); // elastic horiz inNameView.drawFunc = { |u| inNames.do { |name, i| var wid = u.bounds.width / inNames.size; Pen ...
-
... aticText(zone, Rect(0,0, 50, 20)) .font_(font).string_("weights"); inNameView = UserView(zone, Rect(0,0, 200, 20)) .resize_(2); // elastic horiz inNameView.drawFunc = { |u| inNames.do { |name, i| var wid = u.bounds.width / inNames.size; Pen ...
-
... Rect(100, 200, 400, 400)}; var win= Window(this.class.name, b, false); var usr= UserView(win, Rect(0, 0, b.width, b.height)); usr.background= background ?? {Color.white}; usr.drawFunc= { Pen.translate(b.width*0.5, b.height*0.5); Pen.moveTo( ...
-
... Rect(100, 200, 700, 700)}; var win= Window(this.class.name, b, false); var usr= UserView(win, Rect(0, 0, b.width, b.height)); initTranslate= initTranslate ? Point(0.5, 0.5); usr.drawFunc= { Pen.rotate(initAngle, b.width*0.5, b.height*0.5); ...