Skip to content

Commit 2fd3433

Browse files
author
lauren mccarthy
committed
docs for env
1 parent aa72c0c commit 2fd3433

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/environment/environment.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ define(function(require) {
161161
*
162162
* @property displayWidth
163163
* @example
164-
* <div><code>
165-
* size(displayWidth, displayHeight);
166-
* </code></div>
164+
* <div class="norender"><code>
165+
* createCanvas(displayWidth, displayHeight);
166+
* </code></div>
167167
*/
168168
p5.prototype.displayWidth = screen.width;
169169

@@ -173,9 +173,9 @@ define(function(require) {
173173
*
174174
* @property displayHeight
175175
* @example
176-
* <div><code>
177-
* size(displayWidth, displayHeight);
178-
* </code></div>
176+
* <div class="norender"><code>
177+
* createCanvas(displayWidth, displayHeight);
178+
* </code></div>
179179
*/
180180
p5.prototype.displayHeight = screen.height;
181181

@@ -185,9 +185,9 @@ define(function(require) {
185185
*
186186
* @property windowWidth
187187
* @example
188-
* <div><code>
189-
* size(windowWidth, windowHeight);
190-
* </code></div>
188+
* <div class="norender"><code>
189+
* createCanvas(windowWidth, windowHeight);
190+
* </code></div>
191191
*/
192192
p5.prototype.windowWidth = window.innerWidth;
193193
window.addEventListener('resize', function (e) {
@@ -201,9 +201,9 @@ define(function(require) {
201201
*
202202
* @property windowHeight
203203
* @example
204-
* <div><code>
205-
* size(windowWidth, windowHeight);
206-
* </code></div>
204+
* <div class="norender"><code>
205+
* createCanvas(windowWidth, windowHeight);
206+
* </code></div>
207207
*/
208208
p5.prototype.windowHeight = window.innerHeight;
209209
window.addEventListener('resize', function (e) {

0 commit comments

Comments
 (0)