-
... lyRules(11); LSPlant (180@270, 180, argAngle: 90).drawSize_(4).draw(k); ) //Sierpinsky triangle ( a = LSys ( "L" , [ "L" -> "R+L+R" , "R" -> "L-R-L" ]); k = a.applyRules(6); LSPlant (60@400, 30, argAngle: 60).drawSize_(6).draw(k); ) //Islan ...
-
... ); views[\undo] = SmoothButton( header, (size * 0.8)@size ) .states_( [[ 'arrow_pi' ]] ) .radius_( [1,0,0,1] * (size/2) ) .canFocus_(false) .enabled_(false) .stringColor_( Color.gray( [0.5,0][ UScoreEditor.enableUndo.binaryValue ] ) ) .acti ...
-
... ttingHome = true } clearHome { homeQ = nil } prPostYPR { |euler| postf("YAW: %\tPITCH: %\tROLL %\n", *euler.raddeg) } } + Quaternion { // From Varesano: See Sebastian O.H. Madwick report // "An efficient orientation filter for inertial and ...
-
... llel{arg aLine; var a=this.directionVector.angle(aLine.directionVector); if((a==pi)||(a==0),{^true},{^false}); } skewLinesNearestPoints{arg aLine; var p1 = this.positionVector; var p2 = aLine.positionVector; var d1 = this.directionVector; v ...
-
... view // draw sweet spot (on the floor) Pen.addArc(0@0,f*world.sweetSpotSize,0,2pi); Pen.stroke; //ceiling Pen.strokeColor=Color.black; Pen.addRect(Rect.aboutPoint(0@0,world.dim.y/2,world.dim.x/2)); //floor Pen.addRect(Rect.aboutPoint(0@0,f ...
-
... replaced with the flatcat serial number # In Terminal, log into the flatcat raspi with e.g. ssh pi@flatcat22.local # pw: fl4tc4t* # if the flatcat does not start with OSC by default: # In Terminal, stop the default robot program: killall u ...
-
... = 0| var l, m, mabs; var res; #l, m = this.lm; mabs = m.abs; // remap phi phi = pi/2 - phi; // evaluate spherical harmonic case( { m < 0 }, { res = 2.sqrt * sphericalHarmonicI(l, mabs, phi, theta) }, // imag { m == 0 }, { res = sphericalHar ...
-
... - (dx*k).exp ) / (1.0 - k.exp)} ) },{ ((k == \sine) || (k == \sin)).if({ dx = ((pi * (dx - 0.5) ).sin + 1) * 0.5 // this version slightly more efficient // dx = (0.5pi * dx).sin.squared }); ((k == \welch) || (k == \wel)).if({ dx = ( sign.is ...
-
... printText; var maxUndo, undoAr, storeGraphicUndo, getGraphicUndo; classvar halfPi; *initClass { Class.initClassTree(MoscaUtils); halfPi = MoscaUtils.halfPi; } *new { | aMosca, size, palette, guiInt | var p; switch (palette, \ossia, { p = O ...
-
... hods are not faster :( ): // I wonder if there are methods that are genuinely typically faster than: ^this.collect({|n| n -> n.nearestToNode(nil, bestDist, incExact)}); } sibling { if(parent.isNil, {^nil}); // May be nil, even if parent exi ...