-
... 1.5))); // input range to adjust threshold, curve factor for contrast: 0-2 }), Rect(0, 0, image.width, image.height)); ~image.free; ~image = image; ) // 5. display image ~image.plot;
-
... = { |i=0, gate=0| x[i].set(\g, gate) }; w = Window("self ear-training", Rect(200, 200, 583, 136)); w.front; w.onClose_{ { |i| x[i].free }!n }; b = { |parent, label| Button(parent, 30@30) .states_([ [label], [labe ...
-
... n = \h; *viewClass { ^SCUserView } init { arg parent, bounds; bounds = bounds.asRect; super.init(parent, bounds); value = [0.5,0.5]; lineColor = Color.black; dotColor = Color.red(0.5).alpha_(0.5); fillColor = Color.blue(0.25).alpha_(0.5); b ...
-
... lot; // there should have it ) // then you can freely access and set the slot directly - easier ( a.filters[0] = SCImageFilter.new(\CIColorInvert); a.plot; ) // again ( a.filters[0] = SCImageFilter.new(\CIZoomBlur); a.plot; ) // again ( a.f ...
-
... xtH + edge; aHLDots = []; if(win.isNil, { win = GUI.window.new( "Pitch circle", Rect(rrand(0, 50), rrand(10, 500), width, height), false ).front; win.view.background_(Color.new255(240, 240, 240)); // grey win.view.decorator=FlowLayout(win.v ...
-
... sc3.5 qt gui ( var size = 5; var side = 108; var w = Window('hypno-sliderz', Rect(50,50,size*(side+5),size*(side+5))).front; w.addFlowLayout(); ~sliders = Array.fill(size.squared, { Slider2D( w.view,side@side ) }); ~nodes = Array.fill ...
-
... e, 11 ); if( bounds.isKindOf( View ) ) { window = bounds; } { bounds = bounds ? Rect(230 + 20.rand2, 230 + 20.rand2, 680, 300); window = Window(title, bounds).front; }; window.onClose_(onClose); window.toFrontAction_({ this.class.changed(\a ...
-
... graphical system to display it. You can customize its name, position and size directly when creating it: ( var window = Window("My window", Rect(100, 100, 600, 200)); window.front; ) ⧉ ✔ You can also toggle its fullscreen mode: ( var window ...
-
... elpFile help Misc methods inspectorClass Drawing Support draw drawAtPoint drawInRect drawCenteredIn drawLeftJustIn drawRightJustIn bounds Extensions by SCDoc stripWhiteSpace unixCmdGetStdOutLines pbcopy pfuncPbinds sVarGuiSpecs pVarGuiSpecs ...
-
... ods DrawGrid. new ( bounds , horzGrid , vertGrid ) Arguments: bounds A Point or Rect describing the size and position of the grid within the parent view (not including any labels). horzGrid A grid lines object for the x-axis, instantiated v ...