We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7943c0b commit 9c4e7dcCopy full SHA for 9c4e7dc
src/environment/environment.js
@@ -325,16 +325,23 @@ define(function(require) {
325
};
326
327
/*
328
- *
+ * Disables scaling for retina display. By default, the pixels
329
+ * are scaled for the display.
330
*
- * devicePixelScaling
331
+ * @devicePixelScaling
332
* @param {Boolean} val whether the sketch should be scaled or not
333
* @example
334
* <div>
335
* <code>
336
* function setup() {
337
+ * createCanvas(100, 100);
338
+ * }
339
+ *
340
+ * function draw() {
341
+ * ellipse(width/2, height/2, 50, 50);
342
* }
343
* function mousePressed() {
344
+ * devicePixelScaling(false);
345
346
* </code>
347
* </div>
0 commit comments