Returns the current URL parameters in an Object
.
For example, calling getURLParams()
in a sketch hosted at the URL http://p5js.org?year=2014&month=May&day=15
returns { year: 2014, month: 'May', day: 15 }
.
Examples
Returns
Object: URL params
Notice any errors or typos? Please let us know. Please feel free to edit src/core/environment.js and open a pull request!