diff --git a/src/static/art/rothko.svg b/src/static/art/rothko.svg index 6904e4f..15b9756 100644 --- a/src/static/art/rothko.svg +++ b/src/static/art/rothko.svg @@ -1,11 +1,14 @@ - - - - - + + + + + + + + @@ -19,9 +22,10 @@ let mainWidth = 300 - gap + Math.random() * 60 - 60; let mainHeight = 400 - gap + Math.random() * 60 - 60; let shapes = Array(stripes); - let seed = Math.floor(Math.random() * 100000); - document.getElementById('turbSpread').setAttributeNS(null, 'seed', seed); - document.getElementById('turbDistortion').setAttributeNS(null, 'seed', seed); + let seedables = document.querySelectorAll('[seed]'); + for (let i = 0; i < seedables.length; ++i) { + seedables[i].setAttributeNS(null, 'seed', Math.floor(Math.random() * 100000)); + } for (let i=0; i < stripes; i++) { shapes[i] = { color: randomHsl(),