-
... 0, 0], 1.5, 10); trg= RedObject(world, RedVector2D[width*0.5, height*0.5]); //--loop w.draw{ if(mp!=w.mouse, { //just to keep target in middle if no mouse input trg.loc= w.mouse; }); obj.spring(trg, 0.1, 0.9, 50); //target, stiffness, dampi ...
-
... ; resolutionX= 160; resolutionY= 120; img= Image(resolutionX, resolutionY); //--loop w.draw{ cnt= cnt+speed%width; resolutionX.do{|i| x= i/resolutionX*2-1; resolutionY.do{|j| y= j/resolutionY*2-1; rad= x.sumsqr(y).sqrt*sin(cnt)*magnitude; t ...
-
... , RedVector2D[1, 1], mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ world.objects.do{|o, i| world.objects.do{|oo, j| if(i!=j, { o.addForce(o.gravityForce(oo)); if(o.loc.distance(oo.loc)<(o.size*2), { o.addForce(o.gr ...
-
... 50) //world,loc,vel,acc,mass,size .theta_(-1).angularVel_(-0.5); }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o| o.addForceAngular1D(world.gravity); //o.addForce(world.gravity); o.update; //world ...
-
... ents. Differences between InterplEnv and Env InterplEnvs do not have release or loop nodes. They are of a fixed duration. Mostly, it is meant to be used with IEnvGen, where 'times' are actually an index into the envelope shape. Class Method ...
-
KtlLoopGui: Filter: Description (extension) Libraries > JITLib'>JITLib | Modality KtlLoopGui Extension a gui for playing with KtlLoop See also: KtlLoop , EventLoop Description KtlLoopGui inherits most of its functions from EventLoop, it jus ...
-
... s Instance Methods . netAddr the NetAddr of the wifi shield. . close stops main loop and closes the serial port. Inherited instance methods Examples //TODO helpfile source: /tmp/scquark_hs/OpenBCI-SuperCollider/HelpSource/Classes/GanglionWi ...
-
... acc,mass,size .theta_(2pi.rand).angularVel_(1); }.dup(n); a= world.objects; //--loop w.draw{ Pen.width= 1; Pen.strokeColor= Color.white; world.objects.do{|o, i| o.addForceAngular2D(world.gravity); //o.addForce(world.gravity); o.update; worl ...
-
... ions consider PLn and the cutItems arg of PLx list patterns. WARNING: Feeding a looped process with an invalid input has always the potential to lead to hangs. See PsymNilSafe and PLx and live coding with Strings for some remarks on that. P ...
-
... 5, height*0.8], RedVector2D[0, 0], 0, 0, 60); //world,loc,vel,acc,mass,size //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o, i| //iterate all objects in this world world.objects.copyToEnd(i+1).do{|oo| o.collide(oo)}; o.up ...