Created
June 10, 2018 22:54
-
-
Save lonekorean/c37cb0fee05cdbaae9b36c44f94e5811 to your computer and use it in GitHub Desktop.
Starting both hex bokeh 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 hex bokeh background | |
Object.create(hexBokeh).init({ | |
canvasSelector: '#bg1' | |
}); | |
// start second hex bokeh background | |
Object.create(hexBokeh).init({ | |
canvasSelector: '#bg2', | |
radiusRange: [100, 200], | |
pixelsPerBody: 70000 | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment