Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created Jun 10, 2018
Embed
What would you like to do?
Starting both hex bokeh backgrounds
// 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