diff --git a/package-lock.json b/package-lock.json index f198838fae..09a6dbdec7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12153,7 +12153,7 @@ }, "find-up": { "version": "3.0.0", - "resolved": "", + "resolved": false, "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { @@ -12168,7 +12168,7 @@ }, "is-fullwidth-code-point": { "version": "2.0.0", - "resolved": "", + "resolved": false, "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, @@ -12196,7 +12196,7 @@ }, "resolve-from": { "version": "4.0.0", - "resolved": "", + "resolved": false, "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true }, @@ -12234,7 +12234,7 @@ }, "which-module": { "version": "2.0.0", - "resolved": "", + "resolved": false, "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, @@ -12251,7 +12251,7 @@ }, "y18n": { "version": "4.0.0", - "resolved": "", + "resolved": false, "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", "dev": true }, diff --git a/src/core/rendering.js b/src/core/rendering.js index 2c2793431e..32cc0a778c 100644 --- a/src/core/rendering.js +++ b/src/core/rendering.js @@ -20,6 +20,11 @@ const defaultClass = 'p5Canvas'; * one drawing canvas you could use createGraphics * (hidden by default but it can be shown). * + * Important note: in 2D mode (i.e. when `p5.Renderer` is not set) the origin (0,0) + * is positioned at the top left of the screen. In 3D mode (i.e. when `p5.Renderer` + * is set to `WEBGL`), the origin is positioned at the center of the canvas. + * See [this issue](https://github.com/processing/p5.js/issues/1545) for more information. + * * The system variables width and height are set by the parameters passed to this * function. If createCanvas() is not used, the * window will be given a default size of 100x100 pixels.