Archive for February, 2011

Tip: Use AS3′s Histogram() method for color averaging

For several of my projects, I’ve been reusing the same simple method of finding the average color of a region, based on an often-used technique of looping over each pixel, grabbing the pixel’s color using BitmapData.getPixel(x,y), and bit-shifting the results to arrive at the individual color sums. Great, I thought.  No need to ever revisit [...]

Read more