Hi,
I had a quick question about using a texture to fill a shape. My texture is 256x256 pixels but as you can see from the attached picture it doesn't seem to be filling my shape properly. It seems like its not icing the image which is what I expected it to do. I'm just wondering if my matrix values are wrong as its not entirely clear to me what they should be having looked at the Gideros examples.
local texture = Texture.new("Images/Landfill_Rock.jpg")
local matrix = Matrix.new(1, 0, 0, 1, 256, 256)
shape:setFillStyle(Shape.TEXTURE, texture, matrix)
Can somebody tell me whats wrong?
Many thanks
Comments
http://www.giderosmobile.com/forum/discussion/comment/4868
Espacially in the end of thread
Short answer, right now you can't fill shapes by repeating images.
Likes: gorkem
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill