1. //Pixel Mapping - Miyajima
    PImage img;
    String url;

    void setup(){
      url = “http://farm9.staticflickr.com/8306/7981141846_5e8913a61b_z.jpg”;
      img = loadImage(url);
      size(640,400);
    }

    void draw(){
      img.loadPixels();
        for (int i=0; i<img.width; i++){
          for (int j=0; j<img.height; j++){
            pushMatrix();
              img.pixels[i*j] = img.pixels[int(abs(cos(i)*sin(j)))];
              img.pixels[i*j] = img.pixels[int(abs(cos(j)*sin(i)))];
            popMatrix();
          }
        }
      img.updatePixels();
      image(img,0,0);
    }

     
  1. void-setup reblogged this from fyprocessing
  2. stephengrebinski likes this
  3. intothecontinuum likes this
  4. sensualseance likes this
  5. the-greatdeku-tree likes this
  6. semillalunar reblogged this from combinatoriaaleatoria
  7. semillalunar likes this
  8. proce5o likes this
  9. walaino likes this
  10. juanchopero likes this
  11. egelor likes this
  12. sweetquestion likes this
  13. combinatoriaaleatoria reblogged this from fyprocessing
  14. hnn87 likes this
  15. openframeworks reblogged this from fyprocessing
  16. tayatt likes this
  17. rafaelfajardo likes this
  18. dcws reblogged this from fyprocessing and added:
    processing PImage の引数、urlを指定できたのか。
  19. nullpandaexception reblogged this from fyprocessing
  20. imgaynolie likes this
  21. mithilapawar likes this
  22. nosajholt likes this
  23. flyhypnosis likes this
  24. visual-story likes this
  25. dw-it likes this
  26. roomthily likes this
  27. babyjoker-312 likes this
  28. aninconspicouswebpage likes this
  29. octopus-turtle-rat likes this
  30. fyprocessing reblogged this from forgethowtotalk
  31. forgethowtotalk posted this