«Views with sounds from somewhere in the world» by prko

on 05 Sep'20 09:47 in

inspired 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;
)
raw 441 chars (focus & ctrl+a+c to copy)
reception
comments
bp user 27 Sep'20 16:30

Very cool! It's amazing how much can be done in SC with very little code

56228375 user 14 Oct'20 07:35

what a wonderful idea!