-
... deviceValue.collect { |val| (val.round(0.001).asString ++ " ").clipExtend(5) }; Pen.stringCenteredIn(string.join(" "), uv.bounds.extent.asRect, Font(Font.defaultMonoFace, 16.5), Color.green); }; uv.frameRate_(10).animate_(true); butzone.add ...
-
... )}; var win= Window(this.class.name, b); var img= this.asImage; win.drawFunc= { Pen.drawImage(Rect(0, 0, win.bounds.width, win.bounds.height), img); }; win.onClose_({img.free}); win.front; ^win; } makeWindow {|bounds| var b= bounds ?? {Rect ...
-
... e) .drawFunc_({ |view| if(backgrounddraw == true, { if(selectall == true, { GUI.pen.fillColor = XiiColors.lightgreen; },{ GUI.pen.fillColor = Color.white; }); GUI.pen.fillRect(Rect(0, 0, 680, 200)); backgrounddraw = false; // never draw thi ...
-
... dist); Point(v[0], v[1])*size; }; } draw {|dotSize= 5| renderedPoints.do{|p, i| Pen.fillOval(Rect.aboutPoint(p, dotSize, dotSize)); }; } }
-
... UserView(parent, bounds).background_(Color.black).canFocus_(true) .drawFunc_({ Pen.color_(background).fillRect(innerBounds) .color_(drawColor) .stringAtPoint(string, Point(1, 1)) }); // text = StaticText(view, bounds.insetBy(1, 1).moveTo(1 ...
-
... UserView(parent, bounds).background_(Color.black).canFocus_(true) .drawFunc_({ Pen.color_(background).fillRect(innerBounds) .color_(drawColor) .stringAtPoint(string, Point(1, 1)) }); // text = StaticText(view, bounds.insetBy(1, 1).moveTo(1 ...
-
... rID nr 840 // NEW IN VERSION 2: // Amp slider in Recorder and in BufferPool // Open sounds folder in Player // two new instruments: LiveBuffers and Mushrooms // Fixing loading of bufferpools (instruments would automatically load new sound) ...
-
... hisSVGPath == "").not) { thisSVG.free; }; thisSVGPath = aPath; thisSVG = Image.openSVG(thisSVGPath); thisSVGSize = Point(thisSVG.width, thisSVG.height); this.resizeSVG; } free { if(thisSVGPath != "") { thisSVG.free; thisSVGPath = ""; this.r ...
-
+ ColPen { *asSVGGroup { |clear = true, inCmds, index = 0, inTransform| var group, currentColor = Color.black, currentFillColor, currentWidth = 1; var currentPath, currentTransform, np, nt, cStart, cEnd; var font; font = Font.default ?? { F ...
-
... nt); font.size_((font.size * (uv.bounds.width * 0.9 / strBounds.width)).round); Pen.stringCenteredIn(timeStr, uv.bounds, font, Color.white) }); NTMI.g.clok.but = Button( NTMI.g.clok.zone, NTMI.g.clok.uv.bounds.top_(NTMI.g.clok.extent.y * 0. ...