Wednesday, September 14, 2005

Flash® 8 - flash.filters.ColvolutionFilter.divisor Explorer by Ted Patrick

I have been working with ConvolutionFilter. This example allows you to experiment with a ConvolutionFilter and isolates the behavior of the divisor property. The effects possible with ConvolutionFilter are really impressive.



ConvolutionFilter is difficult to grasp with a single example so I am going to provide several to cover its properties independently. In each I am going to attempt to isolate the effect of changes to a particular property. In this case I isolated the divisor property. 'divisor' determines how even the ConvolutionFilter applies the matrix calculations. If you sum the matrix values, the total will be the divisor value that evenly distributes the color intensity. In this case, I am using a 3x3 matrix with a sum of 9. Initially divisor is set to 8.85 and thus it amplifies the color intensity of the color added to the BitmapData. If you set divisor above 9, everything will slowly fade to the base color depending on the BitmapData. When you have filled the BitmapData with a color, type in another color or set the divisor above 9 to return to Black.

This example is available with full source and documentation within Flash® by Example.

More to come.

Ted :)

0 Comments:

Post a Comment

<< Home