render(
m(
'svg',
{
style: { background: '#393939' },
viewBox: `${-n - pad} ${-n - pad} ${2 * (n + pad)} ${2 * (n + pad)}`
},
m(
'g',
{ id: 'thing' },
data.map(({ x, y, d }) => m(Lissajous, { samples, x, y, d }))
),
m('use', {
x: 0,
y: 0,
href: `${window.location}#thing`,
transform: `scale(1,-1)`
}),
m('use', {
x: 0,
y: 0,
href: `${window.location}#thing`,
transform: `scale(-1,1)`
}),
m('use', {
x: 0,
y: 0,
href: `${window.location}#thing`,
transform: `scale(-1,-1)`
})
),
container
)