6 Replies Latest reply on Feb 4, 2016 5:59 PM by nathanwithz

    script to draw shapes and fill with eyedropper at vertex of anchors?


      Is there a script out there that can turn a picture into a "mosaic" of a user specified shape, where the fill of the shape of the mosaic would be filled with the current value form an eye dropper at the vertex (intersection) of the shapes anchor points?

      for example if I had a picture of an orange. and I ran the script with triangles. it would draw transparent triangles of different sizes over the orange. then each triangle would calculate the color at its center with eyedropper and set this as its fill .so that a leaf triangle would be green, a rine triangle would be orange, and a stem triangle would be brown. creating a mosaic affect on the picture.


      if something like this does not exist, do you have any advice on how I can write it myself in java-script?