Program Resource

Resource libraries for programmers and developers

Animal Xing Designer color reduction algorithm Part2

Animal Xing Designer color reduction algorithm Part2

I’ve made additional improvements to color reduction in Animal Xing Designer. Original is left as Type A, and added Type B. Slower, but better color optimization. Left top is original image, right top is algorithm I’ve made adjustment day ago. Color at lower right and background color behind legs are lost in detail. In bottom 2 image, which I’ve made improvement this time, you can see better color detail. Unlike normal color reduction, hard thing about color reduction in Animal Crossing is that we have to pick up 15 colors from limited color palette, and do optimization.

Animal Xing Designer color reduction algorithm

Animal Xing Designer color reduction algorithm

Android tool, Animal Xing Designer have been downloaded and used by quiet a number of people, with good feed-backs. However, recently there were some comments where color reduction is not working well. I was thinking of adding different type of color reduction algorithm, but found out there were problem in existing algorithm while reviewing source code. Light colored area had trouble reducing color, where original image as follows; result as follows in v1.31, where image data is mostly gone. Dithering and color reduction is taking place, and color reduction algorithm were not working well in light colored area. I built new algorithm, and now color reduction is working better with v1.32. …