Advertisement
Guest User

imageFX

a guest
Feb 18th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. class ImageFX
  2. {
  3.     void pixelate()
  4.     {
  5.         int x = int(random(imageX));
  6.         int y = int(random(imageY));
  7.         color c = get(x, y);
  8.         fill(c);
  9.         noStroke();
  10.         square(x, y, size);
  11.     }
  12.    
  13.     void circullate()
  14.     {
  15.         int x = int(random(imageX));
  16.         int y = int(random(imageY));
  17.         color c = get(x, y);
  18.         fill(c);
  19.         noStroke();
  20.         ellipse(x, y, size, size);
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement