···11+init
22+33+ set width to 10
44+ set height to 10
55+66+ set y to 0
77+ repeat height times
88+ set x to 20
99+ repeat width times
1010+ make <div.isocube/> called cube
1111+ set cube's @script to 'install isocube'
1212+ call cube.style.setProperty('--x', x)
1313+ call cube.style.setProperty('--y', y)
1414+ put cube at the end of body
1515+ remove @script from cube
1616+ set x to x+1
1717+ end
1818+ set y to y+1
1919+ end
2020+2121+ -- for item in .isocube
2222+ -- set it's @script to 'install isocube'
2323+ -- call _hyperscript.processNode(it)
2424+ -- end
2525+end
+6
hs/isocube._hs
···11+behavior isocube
22+ on click
33+ get value of #color
44+ call my.style.setProperty('--color', it)
55+ end
66+end