Returns the current URL parameters in an Object
.
For example, calling getURLParams()
in a sketch hosted at the URL https://p5js.org?year=2014&month=May&day=15
returns { year: 2014, month: 'May', day: 15 }
.
Examples
Returns
Object: URL params
This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!