-
... height= 400, w, wgrav, world, n= 100, kmeans; //--world w= RedWindow("k-means", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0); //dim,grav,maxvel,damp //--interface ...
-
... idth= 640, height= 360, maxAge= 200, maxBorneAge= 100; var win= Window("red05", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; usr.background= Color.red; usr.clearOnRefresh= fal ...
-
... var triggeredBySink = false; ~temp = nil; win = Window.new("Sound Descripter", Rect(140, 800, 1100, 200)) .front.alwaysOnTop_(true) .background_(colorSet1[2]) .onClose_({ onsetButton.valueAction = 0; breakButton.valueAction = 0; peakIndexB ...
-
XixiPredator { var <>point, rect, destpoint, stageRect, preyArray, predatorArray; var prey; var fillcolor, strokecolor; var posNegX, posNegY; var xDistance, yDistance; var <>friction, restlessness, <>restlessSeed; var xAway, yAway; var choo ...
-
... ; var data= List[[0, 0, 0]]; //--window var win= Window("accelerometer widget", Rect(10, 100, 512, 360)); var ts= "Time (s)"; var as= "Acceleration (g)"; win.view.minSize= Size(330, 275); win.background= Color.white; win.drawFunc= { var wb= ...
-
... ds = zone.bounds; var height = bounds.height; NTMI.g.main.recBut = Button(zone, Rect(0,0, bounds.width, height * 0.5) ).states_([ ["RECORD?", Color.white, NTMI.g.butGrey], ["Recording!", Color.black, NTMI.g.butGreen] ]).font_(NTMI.g.fontMid ...
-
... }, { SCLOrkSynths.load; }); window = Window.new( name: "SCLOrkSynths", bounds: Rect.new( left: 100, top: 100, width: windowWidth, height: windowHeight ), resizable: false ); window.front; window.view.decorator = FlowLayout.new( bounds: win ...
-
... tatic elements Pen.strokeColor=Color.blue; Pen.alpha=1; // draw world bounds // Rect.aboutPoint(center,half x distance, half y distance) // remember that coordinates are changed respect to draw view // draw sweet spot (on the floor) Pen.add ...
-
... edView object parent a parent view. if nil, then a new window is created bounds Rect . if nil then the parent Rect is used labels an array of strings. determines how many tabs there are. default ["tab1", "tab2", "tab3"] colors an array of c ...
-
... to fill tab historyEditBox = historyWindow.children[0]; historyEditBox.bounds_( Rect( historyEditBox.bounds.left, historyEditBox.bounds.top, bounds.width - historyWidthOffset, historyEditBox.bounds.height ) ); historyListBox = historyWindow ...