-
... it( name, argBounds, resizable, border, scroll ); // , view ); this.background= Color.black; mouse= RedVector2D[0, 0]; userView= JSCUserView(this, Rect(0, 0, view.bounds.width, view.bounds.height)) .mouseDownAction_{|view, x, y| mouse= RedV ...
-
... GUI.qt; w= RedQWindow.new.front; w.resize(RedVector2D[200, 200]) w.background= Color.red w.draw{Pen.fillColor= Color.black; Pen.fillOval(Rect.aboutPoint(175.rand@175.rand, 50, 50))} w.play //start drawing w.stop ( //mouse control w.draw{ v ...
-
... Slider().orientation_(\horizontal).maxHeight_(30), uv = UserView().background_(Color(0.1, 0.1, 0.4)) ); sl.action = SpeedLim(0.15, { |view| j = view.value; uv.refresh; }, AppClock); uv.drawFunc = { |view| var b = view.bounds.moveTo(0, 0); ...
-
... innerRect = scaledRect; //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect, scaledUserView.view.bounds.height); Pen.stroke; }; Pen.use({ var textLeft = 2; this.drawShape(innerRect, sca ...
-
... w= RedWindow("bounce test", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0, 0]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[w ...
-
... w= RedWindow("bounce test", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0, 0]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[w ...
-
... asSymbol], {|sl| actions[labels[i].asSymbol].(sl.value)}, init[i], true) .setColors(sliderBackground: Color.rand); }; //new soundfile button buttons[0] .states_( [["Switch File", Color.black]] ) .action_({|obj| Dialog.openPan ...
-
ToggleSwitch : SCViewHolder { classvar >defaultOnColor, >defaultOffColor; var <value=0,>font,toggleSize,>labelOffset=5,>radius=\auto,>knobInset=3,>label,>label2,labelColor,>offColor,<>drawRect, >onColor,>borderColor,<>drawFunc,toggleRect,>b ...
-
... r",bounds.resizeBy(10,10)); c = GUI.compositeView.new(w,bounds); c.background = Color.new(1.0, 1.0, 1.0,alpha:0.5); grids = numCols.collect({ |ci| numRows.collect({ |ri| GUI.button.new(c, Rect( ci * colWidth , ri * rowHeight, colWidth,rowHe ...
-
... //////////////////////////////////////////////////////////// Use Format->Syntax Colorize (or cmd-') to syntax-colorize comments. //////////////////////////////////////////////////////////////////////////////////////////////////// go to 4_He ...