A book found from the shelf
While living in the house of a professor, I found this book from the bookshelf in my room

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 BitmapFillMatrix.as 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: