-
... nt; win.view.decorator_(FlowLayout(win.view.bounds, 10@10, 10@10)); cview = UserView(win.view, 1000@500).background_(Color.gray(0.25)); cview.drawFunc_({ |v| var center, newcenter, x, y; //dividing line between circles/wavef ...
-
... or.white), tempoCtlView = View().minWidth_(400), nil )), beatView = UserView().fixedHeight_(100) ); deviceMenu .items_(devices) .background_(vBack) .stringColor_(Color.white) .action_({ |view| if(device.notNil) { mi ...
-
... )", Rect(10, 10, 700, 700)); win.onClose = { r.fReset; run = false; }; view = UserView(win, 700@700).drawFunc_({ r.fUpdate }).clearOnRefresh_(false).mouseDownAction_({ |v,x,y| view.clearDrawing; r.fReset; r.fSpawn(x,y) }); win.front; { ...
-
... ow_size[0], window_size[1]), false); win.background_( frame_color ); slider = UserView( win, Rect( margin, margin, window_size[0] - ( margin * 2 ), window_size[1] - ( margin * 2 ) )); slider.drawFunc = { Pen.width = stroke_size; Pe ...
-
... fileView = SoundFileView().readFile(soundFile).gridOn_(false); grainView = UserView().resize_(5); window.layout = StackLayout(fileView, grainView).mode_(\stackAll).index_(1); window.onClose = {p.stop}; window.front; // Where in ...
-
... w = Window.new( "Scale Listener", Rect.new( 0, 0, 1500, 700 ) ); var subview = UserView.new( view, Rect( 0, 0, view.bounds.width, view.bounds.height * 0.2 * all_groups.size ) ); var slider = Slider.new( view, Rect( view.bounds.width * 0 ...
-
Damped Driven Double Pendulum Sonification and Visualization by xavieredavenport (xavieredavenport) Code
... = 820, w = Window("Double Pendulum", Rect(99, 99, width, height), false), u = UserView(w, Rect(0, 0, width, height)); u.clearOnRefresh = true; u.background = Color.white; w.front; u.frameRate = 40; u.animate = true; CmdPeriod.doOn ...
-
... [ \in, ~loudbus, \shortRate, 15, \longRate, longSize / 60 ]); canv = UserView(w, Rect(0, 0, size, size)); canv.background_(Color.black); canv.drawFunc_ { var center, wedge; center = size@size * 0.5; wedge = { |l1, l2, c ...
-
... ance.stop } }; metronome.display = 4.collect{ StaticText(win, (15@10)); UserView(win, (30@30)).background_(Color.red(0.25)) }; StaticText(win, (15@10)); StaticText(win, (800@10)); layout.nextLine; 4.do{ |i| StaticText(win, (2 ...
-
... 0,800,600),server:s); window.front; CmdPeriod.doOnce({window.close}); view = UserView(window, window.bounds); view.background = Color.white; view.resize = 5; view.drawFunc = { |view| var jumpwidth = view.bounds.width / (~numspring ...