From ddb44a8b30152624013b99f0970b77b11964c66a Mon Sep 17 00:00:00 2001 From: Weiwei Guan <71203898+WayGuan@users.noreply.github.com> Date: Sun, 29 Aug 2021 06:40:47 -0400 Subject: [PATCH] Update dom.js comments Updated a comment regarding the position( ) method. --- src/dom/dom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dom/dom.js b/src/dom/dom.js index 8b292648ee..457df1edf1 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -1746,8 +1746,8 @@ p5.Element.prototype.html = function() { *
* function setup() {
* let cnv = createCanvas(100, 100);
- * // positions canvas 50px to the right and 100px
- * // below upper left corner of the window
+ * // positions canvas at upper left corner of the window
+ * // with a 'fixed' position type
* cnv.position(0, 0, 'fixed');
* }
*