-
... /redFrik 2012 ( var width= 640, height= 360, num= 100; var win= Window("red03", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physic ...
-
... pth= 100, w, world, obj; var lorenz; //--world w= RedWindow("lorenz attractor", Rect(128, 64, width, height)).front; w.clearOnRefresh= false; world= RedWorld(RedVector3D[width, height, depth], maxVel:1); obj= RedObject(world, RedVector3D[1, ...
-
... 1072 = 10616832 // this is the mask for shift arrow key Three usage examples, direct and with helper methods isCaps , isShift , isCtrl , isAlt , isCmd , isNumPad , isHelp , isFun : ( w = Window.new.front; w.addFlowLayout; // direct, using b ...
-
... e a Point of two numbers x @ y // returns: Point(x, y) ⧉ ✔ point @ point make a Rect of two Point s Point(left, top) @ Point(right, bottom) // returns: Rect(left, top, right-left, bottom-top) ⧉ ✔ ugen @ ugen create a Point with two UGen s r ...
-
... this when using WsLayout. Arguments: wsWindow An instance of WsWindow bounds A Rect specifying the size of the widget. NOTE: Currently a relative measurement is used: 1 for full window width, 1 for full window height, e.g. Rect(0, 0, 1, 1) ...
-
... , wgrav, world, n= 50, sys, spook= 0; //--world w= RedWindow("wavesystem test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.2); //dim,grav,maxvel,damp //--system ...
-
... y= height/n, lookup; //--world w= RedWindow("discrete world - 2d ca optimised", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector[n, n]); //dim,grav,maxvel,damp //--objects {|x| {|y| var loc= RedVector[x, y]; RedAgent(world, l ...
-
... 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, ...
-
... | 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 ...
-
... 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 ...