-
... : 1) Copy/Paste get_color_picker() alongside a variable which will store the UserView. ( color_picker = get_color_picker.value(); <- color_picker is an UserView ) 2) Create a function that the color picker will call when used. As is, ...
-
... tps://scsynth.org/t/galton-board-sim/6202 ( var win = Window(); var display = UserView().layout_(HLayout().margins_(30)); var availableNotes = [58, 60, 61, 63, 65, 66, 68, 70].midicps; var timesNotesWerePlayed = Array.fill(availableNo ...
-
... ose = { if( colorTask.isPlaying, {colorTask.stop}, {} ); }; //userview creation view = UserView(win, Window.screenBounds); view.clearOnRefresh = false; view.background = Color.white; //any click sets point as current ...
-
... win.background_(Color.black); win.front; // Volume Slider volume_slider = UserView( win, Rect( 5, 5, 45, 190 )); volume_slider.drawFunc = { draw_slider.value( volume_slider, volume_value, volume_color ) }; volume_slider.mouseDownAct ...
-
... ze), bigCosTable = Signal.fftCosTable(size * oversampling); var data; var userView, sampleView, spectrumLayouts, spectrumViews; // [DC, bin1, bin2, nyquist] // --> [DC, bin1, bin2, nyquist, 0, 0, 0, nyquist, bin2, bin1] var mi ...
-
... olor_(Color.gray(0.8)) .string_("-1") .align_(\center); inputVertAxis = UserView.new(win, Rect(20,180,26,384)).background_(Color.clear); inputVertAxis.drawFunc_({ Pen.width_(5); Pen.strokeColor_(Color.new(0,0.75,1,0.5)); ...
-
... height*10), width*20,height*20 ), false, false) .alwaysOnTop_(true); u = UserView(win, win.view.bounds) .background_(Color.gray(0.1)); //game over & score box, only visible when you crash //(score = snake body size) deadbox = S ...
-
... color = Color( 1, 0, 0 ); var hsv = [ 0, 1, 1 ]; var color_picker_view = UserView(); // Main View var h_slider = UserView(); var h_slider_position = 0; var sv_slider = UserView(); var helper = UserView(); var binded ...
-
... // This will be our main window var instrument_file = {}; var main_view = UserView(); var layout = UserView(); var background_color = Color( 0, 0, 0 ); var rythm = Point( 4, 4 ); var rythm_length = ( rythm.x * rythm.y ); var te ...
-
... .stringColor_(Color.gray(0.8)) .string_("-1") .align_(\center); wt0view = UserView.new(win, Rect(60,180,384,384)).background_(Color.clear); wt0view.clearOnRefresh_(true); wt0view.drawFunc = {nil}; wt0view.refresh; wt0view.drawFunc ...