Canvas / createPattern
I am having some trouble using createPattern in accordance with the docs - if I use:
1. var pat = cont.createPattern( av_img, "repeat" );
when used as a fillStyle for a circle it works but the image is centered in the middle and wrapped (repeated) - not what I want.
2. var pat = cont.createPattern( av_img, "no-repeat" );
the image doesn't show up at all when used as a fillStyle.
I have tried Safari and Chrome and the results are the same.
I was hoping to have the image fill the circle, w/ origin at 0,0
Anyone have any better luck using images as a fillStyle w/ repetition set to 'no-repeat'?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)