-
... g to server } initialize { view = view ?? { window = SCWindow.new("JInT Wacom", Rect(1000,0, 440, 370)).front; window.onClose({notInitialized = true}); view = SC2DTabletSlider(window, Rect(10,10,420, 350)).resize_(5); }; view.background = C ...
-
... .close; ( // put it in an existing window - margin is 0@0 w = Window ("my win", Rect(200, 200, 300, 200)).front; w.addFlowLayout; PdefGui ( Pdef ( \a ), 0, w); PdefGui ( Pdef ( \a ), 3, w); ) Details on the GUI elements: name button: when s ...
-
... ill also do that dynamically, as you resize the window: ( w = Window.new(bounds:Rect(100,100,300,80)).layout_( VLayout ( HLayout( Button().states_([["Super"]]), TextField().string_("Collider") ), Button().states_([["SuperCollider"]]) ) ).fr ...
-
... an event, store it, // and set the object from it ( w = Window("KtlLoop.help", Rect(0,500, 400, 550)).front; w.view.addFlowLayout; Slider2D(w, Rect(0,0,190,190)) .action_({ |sl| // put params into an event, var event = (lx: sl.x, ly: sl.y) ...
-
... dow.isNil or:{ window.isClosed }) { window = Window("edit temporary shortcuts", Rect( Window.screenBounds.width/2-249, Window.screenBounds.height/2-193, 498, 385 )); tabs = TabbedView2(window, Rect(0, 1, window.bounds.width, window.bounds.h ...
-
... ost window. Arguments: window A Window in which to place the TextView. bounds A Rect for the TextView font A Font. qpalette A QPalette. * window ( name: "Window into your code" , bounds , font , qpalette ) Create a new Window with the TextV ...
-
... rgMargin| clothesline = argClothesline; name = argName; bounds = argBounds ?? { Rect(20, 30, 800, 300) }; margin = argMargin ?? { 30 @ 30 }; timeStep = argTimeStep; backgroundColor = Color.black; foregroundColor = Color(1, 0.8, 0.2); deacti ...
-
... rav, world, n= 40, rule, px= 0, py= 0; //--world w= RedWindow("agents test ca", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.08]; //world= RedWorld(RedVector2D[width, height], wgrav, 10, 0.1); //dim,grav,maxvel,damp world= R ...
-
... r(z*e, pan)); }).add; s.sync; //--world w= RedWindow("particlesystem fountain", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector2D[0, 0.4]; //world xy gravity world= RedWorld1(RedVector2D[width, height], wgrav, 20, 1); //d ...
-
... rav, world, n= 40, rule, px= 0, py= 0; //--world w= RedWindow("agents test ca", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.08]; //world= RedWorld(RedVector2D[width, height], wgrav, 10, 0.1); //dim,grav,maxvel,damp world= R ...