diff --git a/src/index.js b/src/index.js index 94d3383..6291424 100644 --- a/src/index.js +++ b/src/index.js @@ -9,19 +9,19 @@ function init(p5) { /** * @namespace p5 */ - RendererSVG(p5); - Rendering(p5); - IO(p5); - Element(p5); - Filters(p5); + RendererSVG(p5); + Rendering(p5); + IO(p5); + Element(p5); + Filters(p5); - // attach constants to p5 instance - Object.keys(constants).forEach(function(k) { - p5.prototype[k] = constants[k]; - }); + // attach constants to p5 instance + Object.keys(constants).forEach(function(k) { + p5.prototype[k] = constants[k]; + }); } -if (typeof window.p5 !== "undefined") { +if (typeof window.p5 !== 'undefined') { init(window.p5); }