-
... der img.setPixel(Image.colorToPixel(Color.hsv(func+1/2, 1, 0.75)), i, j); }; }; Pen.drawImage(Rect(0, 0, width, height), img); }; img.interpolation= \smooth; w.play; CmdPeriod.doOnce({img.free; w.close}); )
-
... mented instance methods address calibration connect deviceSpec disconnect id isOpen reconnect Examples IR tracking Classes | External Control WiiMote : Object use the Nintendo (tm) Wii Remote Source: WII.sc See also: HID Description The Wii ...
-
... s)*sin(u); var z= minorRadius*sin(v); [x, y, z]; }); }) ) ); u.view.drawFunc= { Pen.fillColor= Color.grey(1, 0.1); //alpha set trail amount Pen.fillRect(Rect(0, 0, width, height)); }<>u.view.drawFunc; u.animate(40, {|t| u.transforms = [ Can ...
-
... eral kinds of events that can be registered for with the standard Object: -addDependant calls. Events broadcast by menu: \aboutToShow \aboutToHide \triggered (with the MenuAction that was triggered) \hovered (with action that was hovered ov ...
-
... refresh; }, AppClock); uv.drawFunc = { |view| var b = view.bounds.moveTo(0, 0); Pen.color_(Color.white) .fillOval( Rect.aboutPoint( b.center, b.width * j * 0.5, b.height * j * 0.5 ) ); }; ) // argument passing: multiple values from OSCFunc ...
-
... enterTop_(x.center); d = y.rightCenter_(x.center); z = [a,b,c,d][count.mod(4)]; Pen.color_(Color.red).fillOval(x); Pen.color_(Color.white).strokeRect(z).stringCenteredIn( ["A", "B", "C", "D"][count.mod(4)], z, Font.default.size_(20), Color. ...
-
... .2, env= 0, pol= 1, amp= 1, pan= 0| var dry, wet, src, fmod, rmod, freq2, aenv, penv; fmod= InFeedback.ar(fmbusin, 1)*(fmamount*5000); rmod= InFeedback.ar(rmbusin, 1); penv= EnvGen.kr(Env.perc(pitchatk, pitchdec), t_trig, env*pol); freq2= f ...
-
... ; }; w.startRow; } ) ⧉ ✔ // add Sub menus, use icons ( ~icon = Image(40).draw({ Pen.fillColor = Color.green; Pen.fillOval(Rect(10, 10, 20, 20)); }); w = Window.new("ActionMenu Examples").front; // action arguments are |val,modifier,buttonNu ...
-
... nv mkdir pathMatch load loadPaths loadRelative resolveRelative standardizePath openOS Pathname Support shellQuote absolutePath asAbsolutePath asRelativePath withTrailingSlash withoutTrailingSlash basename dirname splitext YAML and JSON pars ...
-
... with mouse controlling world gravity //with sound where fmamount and rmamount depends on the distance to other agents ( s.waitForBoot{ var width= 300, height= 300, w, wgrav, world, n= 4, objsFunc, fmbusses, rmbusses, delay, dist, drums; //- ...