-
... n= width/n, hn= height/n; //--world w= RedWindow("discrete world - explosions", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector2D[n, n], RedVector2D[0, 0.98], 3, 0.5); //dim,grav,maxvel,damp //--objects rep= RedObject(nil, R ...
-
... { |i| (bounds.width/tileSize).ceil.do({ |ii| if( ((i + ii) % 2) == 1 ) { Pen.addRect( Rect( ii * tileSize, i * tileSize, tileSize, tileSize ) ); }; }); }); Pen.fillAxialGradient( bounds.leftBottom + (0@(tileSize.neg)), bounds.leftTop + (0@( ...
-
... tring; border = argBorder; resizable = argResizable; argBounds = argBounds ?? { Rect.new( 128, 64, 300, 300 )}; server = argServer ?? { SwingOSC.default; }; allWindows = allWindows.add( this ); id = server.nextNodeID; dataptr = this.id; thi ...
-
... tring; border = argBorder; resizable = argResizable; argBounds = argBounds ?? { Rect.new( 128, 64, 300, 300 )}; server = argServer ?? { SwingOSC.default; }; allWindows = allWindows.add( this ); id = server.nextNodeID; dataptr = this.id; thi ...
-
... makeGui{ |title| var w,min,max,decorator; w = w ?? { w = GUI.window.new(title, Rect( 0,0,300,25 )).front; w.view.decorator = FlowLayout(Rect(0, 0, 300, 25), 2@2, 2@2); decorator = w.view.decorator; w; }; StaticText.new( w, 150@20 ).string_ ...
-
... makeGui{ |title| var w,min,max,decorator; w = w ?? { w = GUI.window.new(title, Rect( 0,0,300,25 )).front; w.view.decorator = FlowLayout(Rect(0, 0, 300, 25), 2@2, 2@2); decorator = w.view.decorator; w; }; StaticText.new( w, 150@20 ).string_ ...
-
... this.prUpdateFont; this.mouseUpAction_({ |view, x, y| if(x >= (super.interactionRect.right - buttonSize)) { if(x <= super.interactionRect.right) { if(y >= super.interactionRect.top) { if(y <= (super.interactionRect.top + buttonSize)) { this ...
-
... playbuf/6548/17?u=prko>. ( w = Window("An Instant Sound File Player (Looper)", Rect(0,Window.screenBounds.height-180,Window.screenBounds.width-100,Window.screenBounds.height-180)).front; w.view.decorator = FlowLayout( w.view.bounds, 10@10 ...
-
... height]}; this.prDraw(0); } makeWindow {|bounds, background| var b= bounds ?? {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 ?? {Col ...
-
... Pen.fillColor_(super.beatColor); if(super.orientation == \horizontal) { Pen.fillRect( Rect( super.interactionRect.left + (thisBeat * (super.interactionRect.width / super.values.size)), super.interactionRect.top, super.interactionRect.width ...