-
... peat 2pi/p*(width/n); }.dup(nWaves); //--world w= RedWindow("wave phase test2", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0, 0.004]; world= RedWorld(RedVector2D[width, height], wgrav, 5, 0.8); //dim, ...
-
... iew(parent, bounds); } initVuView { arg parent, argbounds; var bounds; bounds = Rect(0, 0, argbounds.width, argbounds.height); this.view_(GUI.userView.new(parent, argbounds)) .drawFunc_({ GUI.pen.color = Color.black.alpha_(0.4); GUI.pen.wid ...
-
... | b.value_(y.value)}); // define custom gui properties conductor.gui.use{ ~popupRect = Rect(0,0,200, ~h); ~listRect = Rect(0,0,200, 400); }; // An SV is a CV whose value is an index into an associated array. // ~popup and ~listview display ...
-
... centerY; name= name ?? {"fingerprint"+points.size+"points"}; bounds= bounds ?? {Rect(128, 64, 300, 300)}; w= bounds.width; h= bounds.height; centerX= w/2; centerY= h/2; scale= scale*centerX.min(centerY); win= Window(name, bounds, false); us ...
-
... tem, i| if(item) {MIDIIn.connect(toPort, i) } }); window = Window("MIDIClient", Rect(299, 55, 200, 48), false); window.addFlowLayout; clientPopUp = PopUpMenu(window, 192@18) .items_( sourceNames ) .font_( font ) .value_(currentDevice) .acti ...
-
... Methods *new (parent, bounds) parent - The parent view. bounds - An instance of Rect , or a Point indicating width@height. ( w = Window .new.front; v = ListView (w, Rect (10,10,120,200)); v.items = [ "item 1" , "item 2" , "item 3" , "item 4 ...
-
... es // Placed in a window, using explicit parent and bounds ( w = Window("test", Rect.aboutPoint(Window.screenBounds.center, 100, 50)); v = LayoutValueSlider(w, Rect(2, 2, 150, 20), 0, [0, 1]); w.front; ) // 5 sliders, positioned by a master ...
-
... position of snake "head" var pos = round(height/2) @ (size + 1); //amount/direction to shift on each frame var shift = 0 @ 1; //for creating snake food var foodpos, foodcolor, tryfoodpos; //gui var win, u, deadbox; //functio ...
-
... drawfunc is present. m = MView(123); m.drawFunc.disable(\all); m.parent.bounds_(Rect(100, 100, 150, 24)); // crash m.parent.bounds_(m.parent.bounds.moveTo(100, 100)); // fine, no resize m.value_([1, 2, 3] / 4); m.dict.myspec = [0,100].asSpe ...
-
... turns Point(x, y) point @ point Point(left, top) @ Point(right, bottom) returns Rect(left, top, right-left, bottom-top) ugen @ ugen create a Point with 2 UGens rect & rect intersection of two rectangles rect | rect union of two rectangles ( ...