-
... ft, top, width, height = this.asArray.min( aRect.asArray ); } translate { |deltaPoint| deltaPoint = deltaPoint.asPoint; ^this.class.new( *( this.leftTop.translate( deltaPoint ).asArray ++ [ width, height] ) ); } scale { |scalePoint| scalePo ...
-
... ultiplication and division, (complex) root finding and evaluation at a specific point for arbitrary degree polynomials. All methods should work for real as well as complex coefficients. Part of MathLib , a diverse library of mathematical fu ...
-
... Color.green]; b.data= {|i| var x= i%b.width; var y= i.div(b.width); b.palette[(Point(sin(x/6), cos(y/5)).rho>(x/b.width)).binaryValue]; }.dup(b.width*b.height); b.plot; ) b.write("~/Desktop/testredbmp1.bmp"); //save it to desktop b= RedBMP ...
-
... ited instance methods Examples a = WsWindow.new("new title", 8000, true); //now point a web browser to http://localhost:8000 (or http://yourIP:8000) "http://localhost:8000".openOS; NetAddr.myIP; //from NetLib; useful for connecting external ...
-
... isOrthogonal { |vector| ^(this <|> vector) == 0 } asAbstractVector { ^this } asPoint { ^Point(this[0],this[1]) } asRealVector { ^RealVector[this.x, this.y] } asRealVector2D { ^RealVector2D[this.x, this.y] } asRealVector3D { ^RealVector3D[t ...
-
... illColor= Color.green(0.6, 0.3); physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass*(1-(p.age/maxAge)), p.mass*(1-(p.age/maxAge)))); }; Pen.fill; }; win.front; CmdPeriod.doOnce({win.close}); Routi ...
-
... rver.default); } } PlayBufLoop { // dirty way to make a buffer loop between two points using a trigger // when endPos < startPos the buffer will play backwards *ar { arg numChannels, bufnum=0, rate=1.0, startPos=0.0, endPos=1.0, loop = 0.0, ...
-
... illColor= Color.green(0.6, 0.3); physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass*(1-(p.age/maxAge)), p.mass*(1-(p.age/maxAge)))); }; Pen.fill; }; win.front; CmdPeriod.doOnce({win.close}); Routi ...
-
... ) .canUseUMapFunc_({ |unit, key, umapdef| unit.isKindOf( UPattern ).not && { [ Point, SimpleNumber, Array ].any({ |class| unit.getDefault( key ).isKindOf( class ) }); }; }) .mappedArgs_([ \input ]).category_( 'pattern_filter' );
-
... ntrols.at(name) ?? { destination.mapGlobal(name, nil, value, spec) }; // if I'm pointing to a proxy, midi controller should point to a proxy also // respondsTo(\proxy) is false for VoicerProxies vcontrol = VoicerMIDIController.new(newMChan, ...