javascript - Photo filter - pixelate (mozaik), rotate 45deg and take color of these squares? -
need algorithm :
original:
after effect:
and after effect want take color of every square ( save x,y,rgb);
first idea resize image. if need 32x32 image resize normal image 64x64 , take every second pixel. , every second row move x+1.
any better ideas? me important colors info. dont' need image, colors.
edit:
i found code : http://www.exorithm.com/algorithm/view/pixelate .
so think. first rotate image 45deg, procces code, save color of each square, procces data colors matrix transform. possible rotate pixels data 45 deg?
p.s. i'm doing in javascript, jq etc.
Comments
Post a Comment