Skip to content

Commit a864b46

Browse files
committed
fixing pointillism #154
1 parent 6d2fe24 commit a864b46

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

content/examples_p5/Basics/Image/LoadDisplayImage/LoadDisplayImage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ function draw() {
2323
image(img, 0, 0);
2424
// Displays the image at point (0, height/2) at half of its size
2525
image(img, 0, height/2, img.width/2, img.height/2);
26+
noLoop();
2627
}

content/examples_p5/Basics/Image/Pointillism/Pointillism.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ function draw() {
3333
var x = int(random(img.width));
3434
var y = int(random(img.height));
3535
var pix = img.get(x, y);
36-
fill(pix, 128);
36+
fill(pix[0], pix[1], pix[2], 128);
3737
ellipse(x, y, pointillize, pointillize);
3838
}

0 commit comments

Comments
 (0)