-
... y, 0)}; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { physics.tick; Pen.width= 0.1; Pen.strokeColor= Color.grey(0, sin(usr.frame%1000/1000*2pi)*0.5+0.5); physics.springs.do{|s, i| Pen.moveTo(Point(s.getOneEnd.position.x, s.getOn ...
-
... y, 0)}; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { physics.tick; Pen.width= 0.1; Pen.strokeColor= Color.grey(0, sin(usr.frame%1000/1000*2pi)*0.5+0.5); physics.springs.do{|s, i| Pen.moveTo(Point(s.getOneEnd.position.x, s.getOn ...
-
... 44.0, 200.0, 32.0, 4.0) ) .value_( 0.5038806200027466 ); */ w.drawHook = { GUI .pen.width_(5).line( 10@10, 390@390 ).stroke }; w.refresh; w.asCode; // includes drawHook functions. But only if they use GUI.pen /* w = GUI.window.new("test-asC ...
-
//Simple_Pendulum //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Simple Pendulum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, ...
-
//Simple_Pendulum //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Simple Pendulum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, ...
-
... t }; } asSVGTransform { ^SVGTransform( this ); } // direct drawing functions: asPenFunction { ^SVGPath( this ).asPenLinesFunc; } fillPath { this.asPenFunction.value; GUI.pen.fill; } strokePath { this.asPenFunction.value; GUI.pen.stroke; } c ...
-
//gui example with userview / pen graphics ( var width= 640, height= 320; var numChan= 4; var chanHeight= height/numChan; var win, usr, frameCount= 0; win= Window("gui example userview", Rect(100, 100, width, height)).front; usr= UserView(w ...
-
... , {|x| a.noise1D(x/100, 0.75, 3, 0)}).normalize.plot //interpolation off //--1d pen test ( var width= 300, height= 300, w, u, a, persistance= 0.75, octaves= 8; w= Window("perlin test 1d", Rect(128, 64, width, height), false); u= UserView(w, ...
-
... t(166, 2.0, 160, 20.0)); // call this somewhere in skipjack, or when changes happen q.inph.updateGui = { q.ndefs.do { |ndef, i| // compare names of current q.ndefs with gui labels var but = g.inphGui.attachButtons[i]; var key = ndef.key; va ...
-
... var outbus, inbus, selected; // temp vars var myVol; // var ateFunc; // what happens when predator eats from the prey // var myBuffer, myBufNum, myBufferName, poolnum, biteFlag; // var poolnum, bufferindex, myVol; // var <>selected, sampleN ...