-
... (win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.2.rand2, 0.2.rand2, 0, 0.4); num.do{physics.makeParticle(1, width.rand, height.rand, 0)}; anchor= physics.makeParticle ...
-
... 5+0.5*width, cos(w.frame*0.027+cos(w.frame*0.0012))*0.5+0.5*height ]; Pen.strokeColor= Color.yellow; Pen.strokeOval(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; world.objects.do{|o, i| if(o!=rep, { o.addForce(o.gravityForce(re ...
-
... (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 ...
-
... (win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.2.rand2, 0.2.rand2, 0, 0.4); num.do{physics.makeParticle(1, width.rand, height.rand, 0)}; anchor= physics.makeParticle ...
-
... 5+0.5*width, cos(w.frame*0.027+cos(w.frame*0.0012))*0.5+0.5*height ]; Pen.strokeColor= Color.yellow; Pen.strokeOval(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; world.objects.do{|o, i| if(o!=rep, { o.addForce(o.gravityForce(re ...
-
... u = SCUserView ( w, w.view.bounds ).resize_(5); w.decorate; w.view.background_( Color .white ); m = SCPopUpMenu ( w, 160@20 ).items_([ "cubic with controls" , "bspline" , "spline" , "hermite" , "linear" , "sine" , "step" ]) .action_({ |pu| ...
-
... rent door sounds for each cube side q.cubes = q.cubeChannels.collect{ |outChan, color| HomeBlock (color, 0, s, q.buffers.activity, q.buffers.doorOpen, q.buffers.doorClose, outChan, q.visualAddr); }; // create persons q.persons = ( green: Bl ...
-
... ltiple objects within a world with gravity force and also collision detection //color and size depends on object's mass ( var width= 300, height= 300, w, wgrav, world, n= 20; //--world w= RedWindow("collision test", Rect(128, 64, width, hei ...
-
... ltiple objects within a world with gravity force and also collision detection //color and size depends on object's mass ( var width= 300, height= 300, w, wgrav, world, n= 20; //--world w= RedWindow("collision test", Rect(128, 64, width, hei ...
-
... e free orientation desindex direction drawSelected fontRatio unselectedRatio setColorAll setFontColorAll displayAltValue svgRatio Internal Methods draw prResizeSVGs prGetGridOrga Inherited instance methods Examples Classes (extension) | GUI ...