📜 ⬆️ ⬇️

Crazy ColorMatrixFilter.

I played today with filters and bitmapdata and accidentally discovered a bug (is it a bug?) In FlashPlayer 9.

Try in some of the projects where BitmapData dynamically redraws, apply a flash.filters.ColorMatrixFilter filter to it with the following matrix:

var cmf:ColorMatrixFilter=new ColorMatrixFilter([1,0,0,0,8000,
0,1,0,0,8000,
0,0,1,0,8000,
0,0,0,1,0])


This will lead to a crazy result in combination with BlurFilter. It is necessary to transfer 8000 to the array at the specified indices. Why 8000? Because in the help on BitmapData I came across information that in the range from -8000 to 8000 on Intel Pentium3 processors and later, acceleration is used to perform calculations. Well, I did not hesitate to insert this value at the index [4]. If you make at least one more, then the effect disappears.
')
I think this is still a bug at the player level.

You can see the result at the link below.

* ATTENTION! * If you suffer from epilepsy, then the stick is better not to watch. I warned you.

You can see here (you need to move the mouse to demonstrate the effect).

The source of this can be taken from here .

UPD: bugreport is sent to adobe
It is established that the glitch does not appear on all brands of processors and not on all operating systems.

Source: https://habr.com/ru/post/41873/


All Articles