Painting tiles and skull using transformation matrix