1. //More Pixel Sorting - WhiteClay
    PImage img;
    int threshold = 153;

    void setup() {
      img=loadImage(“whiteClay_720x541_000_0478.jpg”);
      size(img.width,img.height);
    }

    void draw() {
      for (int w=0; w<img.width*img.height; w++){
        img.loadPixels();
          if ((img.pixels[w]%threshold) == 0) {
            if (w > img.width) { 
              if (brightness(img.pixels[w]) > threshold) {
              img.pixels[w-img.width] = img.pixels[w];
              }
            }
          }
        img.updatePixels();
      }
      image(img,0,0);
    }

     
  1. reblobog reblogged this from forgethowtotalk
  2. buttcrackaddict likes this
  3. iamlordfancypants likes this
  4. jewjewbean95 likes this
  5. noblesquid reblogged this from forgethowtotalk
  6. smrchrdsn likes this
  7. kesyon likes this
  8. sunwillremain likes this
  9. georgeker likes this
  10. oro-blanco reblogged this from forgethowtotalk
  11. echophon likes this
  12. forgethowtotalk reblogged this from kesyon and added:
    eso es exactamente correcto, me puse los valores por encima de img.pixels[w-img.width] = img.pixels[w]; lo siento lo...
  13. kesyon reblogged this from movidareducida and added:
    Creo que va recorriendo todos los pixeles de la imágen, empezando por abajo, de tal forma que para aquellos que sean...
  14. asylunatic likes this
  15. movidareducida reblogged this from naturebendinq and added:
    no entiendo el bucle; soy un downy :________
  16. naturebendinq reblogged this from forgethowtotalk
  17. mnunu-nimune likes this
  18. lacontemplaciondelamaldad reblogged this from androidghost
  19. comftrble reblogged this from androidghost
  20. mig-29 likes this
  21. androidghost reblogged this from cdsf
  22. androidghost likes this
  23. artnatsci reblogged this from cdsf
  24. kylelabow reblogged this from cdsf
  25. cdsf reblogged this from icpbardmfa
  26. bbbbec likes this
  27. audiokayness likes this
  28. averyauditiv reblogged this from adamferriss
  29. averyauditiv likes this
  30. revetaaahw reblogged this from adamferriss
  31. armonian likes this
  32. 111amest reblogged this from adamferriss
  33. mandy1123 likes this
  34. olumculgulumsemeler reblogged this from adamferriss
  35. jovonk reblogged this from riyonek
  36. maxstewartphotography likes this
  37. maximharper likes this
  38. heartlabeledfrancis reblogged this from forgethowtotalk
  39. heartlabeledfrancis likes this
  40. fall- reblogged this from exai
  41. pneapple likes this
  42. exai reblogged this from forgethowtotalk
  43. envisagethis reblogged this from adamferriss
  44. kureikurei likes this
  45. gafanhoto1994 reblogged this from adamferriss
  46. corinnaseto reblogged this from adamferriss
  47. sophianotloren reblogged this from adamferriss
  48. sophianotloren likes this
  49. ivnl93 reblogged this from adamferriss
  50. c77c77c77 likes this