«Views with sounds from somewhere in the world» by prko
on 05 Sep'20 09:47 ininspired by the web site "https://www.window-swap.com/window"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
( var addr, nCol, nRow, scrW, scrH, view, aRow, rows, views; addr = "https://www.window-swap.com/window"; nCol = 3; nRow = 4; scrW = Window.screenBounds.width; scrH = Window.screenBounds.height; view = { WebView().url_(addr) }; aRow = { view ! nCol }; rows = aRow ! nRow; views = Window(bounds:Window.screenBounds.width@Window.screenBounds.height); views.layout = VLayout(*rows.collect { |x| HLayout(*x) }); views.front; )
reception
Very cool! It's amazing how much can be done in SC with very little code
what a wonderful idea!