-
... ds.width; var uh= usr.bounds.height; var cur= xCurvSpec.map(xCurvSlider.value); Pen.strokeColor= palette.buttonText; a= (0..99)/99; if(cur!=0, { ~func= {|t, a= 15| atan((t-0.5)*a)/(2*atan(0.5*a))+0.5}; }, { ~func= {|t, a= 15| t}; }); a.do{| ...
-
SmoothButton part of wslib a Pen -based replacement for SCButton , with extra styling options. SmoothButton works the same way as SCButton. But, as the name states, it is smooth. SmoothButton is a subclass of RoundButton and shares all of i ...
-
... .string_(outputs) }; view.drawFunc = { snds.do { |which, i| Pen.strokeColor = Color.black; Pen.moveTo(0@0); Pen.lineTo(0@h); Pen.translate(oW, 0); Pen.stroke; fltTxts[i].stringColor_( if(flt ...
-
... position as a Point . . clear Clears the drawing. . close Close the window if open. . width Set Pen stroke width. . strokeColor Set Pen stroke colour. . background Set drawing background colour. Inherited instance methods Examples a= Redra ...
-
... ; udefController.remove; if( chain.isKindOf( MassEditUChain ) ) { chain.removeDependantFromChains( massEditController ); }; this.removeFromAll; if( composite == vw && { current == this } ) { current = nil } }; // startbutton views[ \startBu ...
-
... (i-1).loc); //o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.strokeColor= Color.grey((depth-o.loc[2]/(depth*0.5)).clip(0, 1)); Pen.strokeOval(Rect.aboutRedObject3D(o, s, f)); }; }; w.play; CmdPeriod.doOnce({w.close}); ...
-
... (i-1).loc); //o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.strokeColor= Color.grey((depth-o.loc[2]/(depth*0.5)).clip(0, 1)); Pen.strokeOval(Rect.aboutRedObject3D(o, s, f)); }; }; w.play; CmdPeriod.doOnce({w.close}); ...
-
... center, rect.width.min( rect.height ) / 5, rect.width.min( rect.height ) / 4 ); Pen.line( square.leftBottom, square.leftTop ); Pen.lineTo( square.rightTop ); Pen.lineTo( square.right @ (square.top + (square.height / 2) ) ); Pen.lineTo( squa ...
-
... <>oldBeat, stopSeq, playSeq, isPlaying, blobInBeats, <>idBlobDict, addBlobWin, pendingJumpTo, pendingJumpBeat; var <>menuList; var <codeBlobs; var <>codeEnvirs, <curEnvirIndex; *initClass { this.addHadronPlugin; } *new {|argParentApp, argI ...
-
... collide(oo)}; //faster but less accurate o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )