Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created June 10, 2018 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonekorean/90c5caecbbe94d60aac3f87f8737b926 to your computer and use it in GitHub Desktop.
Save lonekorean/90c5caecbbe94d60aac3f87f8737b926 to your computer and use it in GitHub Desktop.
Starting both goo blobs backgrounds
// 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