-
... wgrav, world, n= 60, s= 1.25, f= 0.25; //--world w= RedWindow("multi 3d test", Rect(128, 64, width, height)).front; wgrav= RedVector3D[0.1, 0.1, 0.1]; world= RedWorld3(RedVector3D[width, height, depth], wgrav, 20, 0.01); //dim,grav,maxvel, ...
-
... height= 300, w, wgrav, world; //--world w= RedWindow("barycenter - 2 objects", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 5, 0); //dim,grav,maxvel,damp //--objects ...
-
... Button ; f = Buffer.alloc(s, 1024, 2); b = Bus.audio(s, 1); w = Window("Scope", Rect(150, Window.screenBounds.height-500, 790, 400)).front; c = ScopeView(w, Rect(10, 10, 380, 380)); // this is SCScope c.bufnum = f.bufnum; // IMPORTANT c.ser ...
-
... 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) ...
-
... moveTo lineTo line curveTo quadCurveTo arcTo addArc addWedge addAnnularWedge addRect addOval Draw the path stroke fill draw fillStroke Construct and draw strokeRect fillRect strokeOval fillOval Gradients fillAxialGradient fillRadialGradient ...
-
... Methods . new Create an ActionMenu Arguments: parent The parent view. bounds A Rect name The Menu Button Title items An Array of Strings or Associations (\key->function) showArrow show a little down-tick arrow, defaults to true Returns: an ...
-
... From superclass: View Arguments: parent The parent view. bounds An instance of Rect , or a Point indicating width@height . Discussion: Example: ( w = Window.new("The Four Noble Truths"); b = Button(w, Rect(20, 20, 340, 30)) .states_([ ["th ...
-
... Methods . new Create a new canvas view. Arguments: parent Parent View bounds A Rect describing the position and size of this view inside the parent. Returns: A new Canvas3D instance. Matrix transforms The following methods are used to crea ...
-
... ight= 300, w, wgrav, world, rep, obj; //--world w= RedWindow("repulsive test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 10); //dim,grav,maxvel,damp //--objects re ...
-
... rder to enhance the existing function: ( w=Window.new.front; v = FancySlider(w, Rect (20,90,300,20)).action_{"test".postln}; v.drawFunc=v.drawFunc.addFunc({arg uview; var value_string = v.value.round(0.01).asString; var string_x; Pen.font = ...