-
... et) .gui(parent) .start } init { |argBounds, argOffset| bounds = argBounds ?? { Rect(0,0,410,410) }; numChannels = locations.size; proxy = proxy ?? { NodeProxy.control(server, this.numChannels) }; group !? { proxy.parentGroup_(group) }; pro ...
-
//spinning plane / rectangle ( var width= 640, height= 480, w, theta= 0, speed= 0.01, plane; w= RedWindow("3Dplane", Rect(128, 64, width, height)).front; plane= Red3DPlane(width: 0.5, height: 0.8); //--loop w.draw{ theta= theta+speed; plane ...
-
//spinning plane / rectangle ( var width= 640, height= 480, w, theta= 0, speed= 0.01, plane; w= RedWindow("3Dplane", Rect(128, 64, width, height)).front; plane= Red3DPlane(width: 0.5, height: 0.8); //--loop w.draw{ theta= theta+speed; plane ...
-
... fxZone.isNil or: { NTMI.g.main.fxZone.isClosed }) { var w = Window("mainFXBut", Rect(0, 0, 394.0, 79.0)).front; NTMI.g.main.fxZone = w.view; }; NTMI.g.main.mfxBut = Button( NTMI.g.main.fxZone, NTMI.g.main.fxZone.bounds.extent ).states_([ [" ...
-
... , ploc, angularAccel1, angularAccel2; //--world w= RedWindow("double pendulum", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 0.75, 0.01); //dim,grav,maxvel,damp //--obj ...
-
... , ploc, angularAccel1, angularAccel2; //--world w= RedWindow("double pendulum", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 0.75, 0.01); //dim,grav,maxvel,damp //--obj ...
-
... * 0.5); var halfColor = hiliteColor.copy.alpha_( hiliteColor.alpha * 0.5 ); var rect, fillRect, fillRect2, fillColor; var hexPoints = 7.collect { |i| Polar(center.y, 2pi * (i/6) + angle).asPoint + center }; Pen.fillColor = hexColor; Pen.mov ...
-
... ue) }, {|box| this.extDetCent_(box.value) }, ].collect { |func, i| NumberBox(w, Rect(0,0, width / 5 - 3, 20)) .decimals_(3) .action_(func); }; boxes[[0, 1, 4, 9]].do { |box| box.enabled_(false).scroll_(false) }; } allVals { ^[ refVal, baseV ...
-
... with JITGui: * put into a zone with its own layout * make sure it works with direct placement, FlowLayout or new Layout schemes * know its own preferred size * know how to place itself in a Layout * flexify getVal function, * so PdefnGui c ...
-
... r width= 640, height= 480, w, theta= 0, speed= 0.01, box; w= RedWindow("3Dbox", Rect(128, 64, width, height)).front; box= Red3DBox(); //--loop w.draw{ theta= theta+speed; box.rotation= RedVector3D[theta, theta, theta]; box.update; //--rende ...