[][src]Static p5_sys::global::getURLParams

pub static getURLParams: GetUrlParamsInternalType

Gets the current URL params as an Object.

Examples

// Example: http://p5js.org?year=2014&month=May&day=15

function setup() {
  let params = getURLParams();
  text(params.day, 10, 20);
  text(params.month, 10, 40);
  text(params.year, 10, 60);
}