BIT-101 [2003-2017]

BitmapData Threshold Explorer


The threshold function of the BitmapData object in Flash 8 (and 9) is one of its most powerful features, and one of the most confusing.

For my FiTC I presentation, I had created a Noise Explorer and a Perlin Explorer, which I thought were pretty cool. So I decided to do the same for the threshold function. And here it is:

This was a lot more complex, as I made it so you can load in your own bitmap to play with. Problem with that is when you load in a bitmap from another domain, you aren’t allowed to draw its pixels onto a BitmapData object. Bah! Security! Until I figure out a workaround, I had to make it a projector, which seems to not really care about that limitation. So here they are:

Threshold Explorer for Windows

Threshold Explorer for Mac

This explorer doesn’t show every possible usage of threshold. In particular, it limits your mask choices to full red, green, or blue channels, and pretty much ignores the concept of the alpha channel all together. But it definitely simplifies the usage of the function and will cover 90% of your use cases, and allow you to easily extrapolate most of your remaining use cases.

« Previous Post
Next Post »