-
... lor; Pen.strokeRect( w.bounds.left_(0).top_(0).insetBy(1, 1) ); } ); iconView = UserView( window, Rect( 4,4, 72, 72) ).drawFunc_({ |vw| Pen.color = color; DrawIcon.symbolArgs( iconName, vw.bounds ); }).canFocus_( false ); stringView = Stati ...
-
... [0, 1]).font_(f); g.mini.zoom.labelView.stringColor_(Color.white); g.mini.uv = UserView(w, Rect(210, 90, 120, 130)).background_(Color.red(1, 0.7)) .drawFunc_({ |u| 4.do { |i| var shift = if (i.inclusivelyBetween(1, 2), 10, 0); Pen.addArc( ...
-
... ues of a Rect ( var count = 0; w = Window("", Rect(300,300,300,300)).front; u = UserView(w, w.view.bounds).animate_(true).frameRate_(1) .drawFunc_{ count = count+1; x = Rect.aboutPoint(w.view.bounds.center, 3, 3); y = Rect(0,0,60,120); a = ...
-
... kerList = [[-30, "L"], [30, "R"], [0, "C"], [-110, "Ls"], [110, "Rs"]]; c = GUI.userView.new(w,Rect(0, 0, 400, 380)); c.canFocus = false; c.drawFunc = { Color.grey(0.8).set; // draw the speaker layout GUI.pen.translate(200,200); ((actPoint. ...
-
... bounds = Rect(bounds.left+1, bounds.top+1, bounds.width, bounds.height); view = UserView(w, bounds); //view.resize = 5; bounds = bounds.moveTo(0, 0); // my reference this.calcBoxBounds; this.updatePoints; view.focusColor = defaultStyle.bord ...
-
... omposite.decorator.shift( bounds.width - 80 - 28, 0 ); views[ \displayColor ] = UserView( composite, 28@14 ) .resize_(3) .drawFunc_({ |vw| var wd = 8, smallRect; if( chain.displayColor.notNil ) { Pen.roundedRect(vw.drawBounds, wd); chain.di ...
-
... nds.addMake(\flatcatViz, { var w = Window("flatcatViz", 400@400).front; var u = UserView(w, 400@400); u.animate_(true); w.alpha_(NTMI.g.alpha); NTMI.flatcat.w = w; NTMI.flatcat.u = u; u.drawFunc = NTMI.flatcat.drawFunc; w }); )
-
... , (Window.screenBounds.height/2)-(height/2), width, height), false).front; u = UserView(w, Rect(0, 0, width, height)); u.background = Color.white; u.animate = true; u.frameRate = 60; u.drawFunc = { // update paddle position 2.do{|i ...
-
... scdraw preview", Rect(200, 200, width, height), resizable: false).front; view = UserView(win, win.view.bounds).background_(color).clearOnRefresh_(false); win.view.background_(color); SystemClock.sched(0.0, { if(frame < lastFrame, { while { ...
-
... omposite.decorator.shift( bounds.width - 90 - 28, 0 ); views[ \displayColor ] = UserView( composite, 28@14 ) .resize_(3) .drawFunc_({ |vw| var wd = 8, smallRect; if( chain.displayColor.notNil ) { Pen.roundedRect(vw.drawBounds, wd); chain.di ...