Using BMPData.threshold, can you isolate a range of colors?

Hey All!

During my toying around with bitmapdata, I’ve tried to create several color trackers. The color tracking is (in some way) easy enough to make, though I can only make flash catch a specific color.

Say I held an orange up in front of the camera, and I wanted flash to isolate that part of the image with the orange in it. Then we all know what our goal is…

I’ve tried using threshold to cut out colors below and above the lower and higher portions of the color range from the orange, but I still get buggy results.

Has any of you tried color tracking before? Or can any of you think of a creative way to utilize the various data properties of bmpdata to catch a color range? My only idea was to, as said, isolate lower and higher portions, and ending up with a b/w result, to which I could apply getColorBoundsRect to effectivily catch all needed information.

anyone? :beam: