Created
June 10, 2018 23:02
-
-
Save lonekorean/90c5caecbbe94d60aac3f87f8737b926 to your computer and use it in GitHub Desktop.
Starting both goo blobs backgrounds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wait for DOM to load | |
window.addEventListener('DOMContentLoaded', () => { | |
// start first goo blobs background | |
Object.create(gooBlobs).init({ | |
canvasSelector: '#bg1' | |
}); | |
// start second goo blobs background | |
Object.create(gooBlobs).init({ | |
canvasSelector: '#bg2', | |
yVarianceRange: [-1.5, -0.5], | |
pixelsPerBody: 30000, | |
colors: ['#d3f0ea'] | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment