Filling shapes with a bitmap adjusted by a matrix

This example below was made to test some features of the bitmap fill and the matrix which can be used to adjust the filling. This is Actionscript 3 by the way.

Source code example now available at GitHub.

The two dots are to show where the mouse is positioned after the matrix calculations. Two for the reason that there are two ways: