-
... font).width; var fontScale = (uv.bounds.width * 0.95 / labelWidth).clip(1, 10); Pen.stringCenteredIn( emmy.label.asString, emmy.bounds.moveTo(0,0), Font(font.name, (font.size * fontScale).min(uv.bounds.height * 0.6)), Color.blue ) }); [pop, ...
-
... will not be valid for any other platform! { (Platform.resourceDir +/+ "../..").openOS } }; }; window = Window("Snippets", Rect.aboutPoint(Window.screenBounds.center, 120, 90)); window.layout = VLayout( textField = TextField().fixedHeight_(2 ...
-
... rue) .focusColor_(Color.black.alpha_(0)) //.relativeOrigin_(false) .drawFunc_({ Pen.color = Color.white; Pen.fillRect(Rect(0, 0, 510, 510)); toshioArray.do({arg row; row.do({arg toshio; toshio.draw }); }); }) .mouseDownAction_({arg me, x, y ...
-
... t(i, nuchan); this.registerChannel(nuchan); adding = adding.add(nuchan); nuchan.pending = true; }); }); } insertChannel { arg index, objects; // if adding a new channel it will insert it at the end // so will add one tp make sure there are ...
-
RoundSlider part of wslib a Pen -based replacement for SCSlider , with extra styling options. RoundSlider works the same way as SCSlider. But, as the name states, it is round. Next to that it has a lot of extra options. RoundSlider is a sub ...
-
... bled = true; widget.focusColor=tabbedView.focusFrameColor; userDrawFunction = {|pen,drawRect,tabPosition,followEdges|}; scroll.if{ this.view = context.scrollView.new(tabbedView.view).resize_(5) }{ this.view = context.compositeView .new(tabb ...
-
... bled = true; widget.focusColor=tabbedView.focusFrameColor; userDrawFunction = {|pen,drawRect,tabPosition,followEdges|}; scroll.if{ this.view = context.scrollView.new(tabbedView.view).resize_(5).hasBorder_(false); }{ this.view = context.comp ...
-
... transparent }, { img.setColor(image.data[j], x, y); }); j= j+1; }); i= i+1; }); Pen.drawImage(Rect(0, 0, win.bounds.width, win.bounds.height), img); switch(image.control.disposalMethod, 1, nil, //leave image for overwrite 2, {img.fill(backg ...
-
... size options: attach little KeyLoopGui on the side? future: make whole gui with Pen for elegant rescaling? make window non-resizable? */ KeyPlayerGui : JITGui { classvar <>colors; classvar <>lineOffsets; classvar <>keyboard; classvar <>keyb ...
-
... size options: attach little KeyLoopGui on the side? future: make whole gui with Pen for elegant rescaling? make window non-resizable? */ KeyPlayerGui : JITGui { classvar <>colors; classvar <>lineOffsets; classvar <>keyboard; classvar <>keyb ...