Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created June 10, 2018 22:54
Show Gist options
  • Save lonekorean/c37cb0fee05cdbaae9b36c44f94e5811 to your computer and use it in GitHub Desktop.
Save lonekorean/c37cb0fee05cdbaae9b36c44f94e5811 to your computer and use it in GitHub Desktop.
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