-
... ridStepX, gridStepY; var mp= false, mx= 0, my= 0, px= 0, py= 0; usr.background= Color.white; physics= TraerParticleSystem(gy: 0.1, drag:0.01); particles= Array.fill(gridSize, {Array.newClear(gridSize)}); //physics.integrator.postln; //physi ...
-
... ridStepX, gridStepY; var mp= false, mx= 0, my= 0, px= 0, py= 0; usr.background= Color.white; physics= TraerParticleSystem(gy: 0.1, drag:0.01); particles= Array.fill(gridSize, {Array.newClear(gridSize)}); //physics.integrator.postln; //physi ...
-
... ue; win.alpha_(0.7); uv = UserView.new(win, Rect(0,0,200,150)); uv.background = Color.red; uv.animate = true; uv.drawFunc = { |uv| var timerColor; Pen.stringLeftJustIn( " " ++ pilot ++ "\n " ++ copilot ++ "\n " ++ nextCopilot, uv.bounds, Fo ...
-
... }); topView = CompositeView( view, view.bounds.moveTo(0,0) ); } background_ { |color| view.background = color } background { ^view.background } bounds { ^view.bounds } bounds_ { |rect| rect = rect.asRect; view.bounds = rect; uview.bounds = ...
-
XiiSnd { var <>point, <>pitch, rect, stageRect; var fillcolor, strokecolor; var rot, predatorArray, preyArray; var xDistance, yDistance, destpoint, move, friction; var posNegX, posNegY; var xAway, yAway; var outbus, inbus, selected; // temp ...
-
... Rect, specSelectRect, wdgtTypeRect, enterTabRect; var staticTextFont, staticTextColor, textFieldFont, selectFont, textFieldFontColor, textFieldBg; var formEls, nameStr, makeLine, sendBut, cancelBut; var flow, lines, allEls, allWidth; var cM ...
-
... //////////////////////////////////////////////////////////// Use Format->Syntax Colorize (or cmd-') to syntax-colorize comments. //////////////////////////////////////////////////////////////////////////////////////////////////// go to 04_H ...
-
... w.view.bounds; x = CompositeView(w, w.view.bounds.insetBy(20,20)) .background_(Color.rand) .resize_(i); y = CompositeView(x, x.bounds.moveTo(0,0).insetBy(20,20)) .background_(Color.rand) .resize_(i); y.decorator = FlowLayout(y.bounds).gap_ ...
-
... = f = GUI.window.new("::inspect::",Rect(440,500,1100,900)); f.view.background = Color.white; h = f.bounds.height - 50; w = f.bounds.width; menu = GUI.listView.new(f,Rect(3,0,200,h)); menu.font = GUI.font.new("Courier",10); menu.background = ...
-
... (win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.1, 0.2, 0.3, 0.9); num.do{physics.makeParticle(1.5.rand+0.5, width.rand, height.rand, 0)}; anchor= physics.makeParticl ...