Skip to content

Commit 21d4e73

Browse files
committed
devicePixelScaling now pixelDensity
1 parent 17671b2 commit 21d4e73

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

content/examples_p5/Topics/Image Processing/Brightness/Brightness.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function preload() {
1818
function setup() {
1919
var canvas = createCanvas(640, 360);
2020
canvas.parent("p5container");
21-
devicePixelScaling(false);
21+
pixelDensity(1);
2222
frameRate(30);
2323
img.loadPixels();
2424
// Only need to load the pixels[] array once, because we're only

content/examples_p5/Topics/Image Processing/Convolution/Convolution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function preload() {
2626
function setup() {
2727
var canvas = createCanvas(640, 360);
2828
canvas.parent("p5container");
29-
devicePixelScaling(false);
29+
pixelDensity(1);
3030
}
3131

3232
function draw() {

content/examples_p5/Topics/Image Processing/EdgeDetection/EdgeDetection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function preload() {
2323
function setup() {
2424
var canvas = createCanvas(640, 360);
2525
canvas.parent("p5container");
26-
devicePixelScaling(false);
26+
pixelDensity(1);
2727
noLoop();
2828
}
2929

0 commit comments

Comments
 (0)