-
Damped Driven Double Pendulum Sonification and Visualization by xavieredavenport (xavieredavenport) Code
... e), u = UserView(w, Rect(0, 0, width, height)); u.clearOnRefresh = true; u.background = Color.white; w.front; u.frameRate = 40; u.animate = true; CmdPeriod.doOnce({if(w.isClosed.not, {w.close})}); /////////////////////// ...
-
... (VLayout( usr= UserView().fixedSize_(win.bounds.width, win.bounds.height*0.5).background_(Color.grey(0.9)), HLayout(penWidthSlider= Slider().orientation_(\horizontal), StaticText().string_("penWidth")), HLayout(numCogsSlider= Slider() ...
-
... w = Window(style.name, initRect); w.alwaysOnTop_(true).userCanClose_(false); w.background_(style.winCol).alpha_(style.alpha ? 1); w.layout = VLayout( pop = PopUpMenu().font_(style.font), *(butz = numB.collect { Button(w).states_([this.blan ...
-
... xtString= StaticText().fixedHeight_(" ".bounds(fnt).height*6) .align_(\topLeft).background_(Color.grey(0.9, 0.5)) ); SGUI.report(win); SGUI.adapt(win); win.front; infoTextString.font= fnt; sendOsc= {|arr| var str= ""; arr.do{|a| var addr= S ...
-
... r brown ] / 255; colPal = colPal.collect{|rgba| Color.fromArray(rgba) }; w.view.background = colPal[1]; w.view.decorator = FlowLayout(w.view.bounds, 4@4, 0@0); Spec.add(\level, [0, 4, \amp]); volSpec = [-90, 6, \db].asSpec; makeButtonA = { ...
-
... 42, 106), resizable:false); sensibang = Bang.new(win, Rect(10, 10, 50, 50)) .setBackground_(Color.white); recbang = Bang.new(win, Rect(70, 10, 50, 50)) .setBackground_(Color.white) .setFillColor_(Color.red(alpha:0.5)); recButt = GUI.button. ...
-
... _(Rect.aboutPoint(Window.screenBounds.center + (0 @ -60), 260, 190)); MTP.uview.background_(Color.grey(0.4, 0.6)); MTP.guiWin.view.alpha_(0.8); MFdef(\mtp).add(\pad, { |id, xys| var mypadindex, myimukey, numfingers; var imukeys = [ 'accel', ...
-
... ent, bounds| items = []; transforms = []; this.view = UserView(parent, bounds) .background_(Color.white) .drawFunc_({ var penClass= try{if(\GUI.asClass.notNil, {GUI.pen})}?Pen;//avoids gui redirect preDrawFunc.value; items.do {|item| penCla ...
-
... view.bounds.width) .height_(window.view.bounds.height) })*/ .front; window.view.background = Color.gray(0.5); window.view.resize = 5; zplane = GUI.userView.new(window, Rect(0, 0, 300, 300)) .background_(Color.gray(0.5)) .drawFunc_(drawzplan ...
-
... dView(StaticText().fixedHeight_(" ".bounds(fntMono).height*2) .align_(\topLeft).background_(Color.grey(0.9, 0.5))) ); if(SGUI.currentTheme!=\dark, { win.view.children.select{|v| v.isKindOf(Slider)}.do{|v| v.background= Color.grey(0.7725, 0. ...