Yes, Path2D will try to apply your texture to the whole shape by default. If you want to have it repeat, you can apply a transform matrix to your texture, in second arg of setTexture().
Thanks, I tried, it woks! Do you mean scale the texture size back to it's original size? For example, if the size of path2d is W*H and the texture's original size is w*h, W and H is much larger than w and h, then pass a matrix.new(w/W, 0, 0, h/H,0,0),it will not lost quality of the texture.
Comments
http://docs.giderosmobile.com/reference/gideros/Path2D/setTexture#Path2D:setTexture
Do you mean scale the texture size back to it's original size?
For example, if the size of path2d is W*H and the texture's original size is w*h, W and H is much larger than w and h,
then pass a matrix.new(w/W, 0, 0, h/H,0,0),it will not lost quality of the texture.