-
... aPath| if(thisIMG.notNil) { this.free; }; thisSVGPath = aPath; thisIMG = Image.openSVG(aPath); thisSVGSize = Point( thisIMG.width, thisIMG.height ); this.prResizeSVG; } svgRatio { ^thisSVGRatio } svgRatio_ { |aFloat| thisSVGRatio = aFloat; ...
-
... ALLED! See also: RedMRCM , RedLTurtle , RedMandelbrot Description Plotting with Pen . After Flake - "The Computational Beauty of Nature". Class Methods . new Arguments: drawFunc A Function that draws something. It is passed a Point argument ...
-
... works with touch on smartphones, here: "https://s4ntp.org/ntmi/play#username".openOS; // The webmouse message is: 0: message name \mouse 1: random influx chan 1, stays constant for this touch-sequence 2: random influx chan 2 for this touch ...
-
... r margin = view.bounds.height * 0.01; if( margin < 4, { margin = 4 } ); Pen.fillColor_( states[current_state][2] ); Pen.fillRect( Rect( 0, 0, view.bounds.width, view.bounds.height ) ); Pen.fillCo ...
-
... FUNCTIONS // ///////////////////////////// drawCircle { |position, symbolSize| Pen.addArc( position, (symbolSize / 2), 0, 2pi ); Pen.fill; if(super.outlineSize > 0) { Pen.addArc( position, (symbolSize / 2) - (super.outlineSize * 2), 0, 2pi ...
-
... x, y, mod| drawList.do({ |object| object.mouseUp(x, y); }) }) .drawFunc_({ GUI.pen.color = background; // background color GUI.pen.fillRect(Rect(0.5, 0.5, rect.width-1, rect.height-1)); // background fill GUI.pen.color = Color.black; drawL ...
-
... fault ); size = this.object.size; view.fromBounds = Rect( 0, 1.1 ,size, -1.2 ); Pen.use({ points = this.points.asCollection.collect(_.asPoint); mean = object.mean; Pen.color = Color.gray(0.5,0.5); [ 0@0, "%", 0@1, "%", 0@ud, "%", 20@(object ...
-
... ing;\ var format = [340, 360];\ var colors = [ Color .black, Color .gray];\ var penWidth = 1;\ \ #e, f = [a, b].collect();\ \ \ \ // based on example of SCUserView \ drawing = \ | collective, i | \ \ var w, v, txt, tmppoints, undone, all, p ...
-
... ); var fixtureBounds = Rect( extentHalf.x, extentHalf.y, *extentHalf.asArray ); Pen.use{ Pen.color = Color.black; Pen.fillRect(bounds); // color Pen.color = color; Pen.fillRect(colorBounds); // white Pen.color = white; Pen.fillRect(whiteBou ...
-
... Pt; if (ghostPos.notNil) { xpos = ghostPos * width; centPt = xpos@(height*0.5); Pen.color_(dict[\ghostCol]); Pen.width_(1); Pen.addRoundedRect(Rect.aboutPoint(centPt, 8, height*0.5 - 2), 5, 5); Pen.addArc(centPt, 5, 0, 2pi); Pen.stroke; }; ...