Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Drawing and textures — Gideros Forum

Drawing and textures

victor_cappavictor_cappa Member
edited July 2013 in General questions
Hi everybody.
This may be a dumb question, but as a beginner I think that's excusable :P
Anyway, I've tryed to put some texture in a rectangle that I've drawn, but I'm only getting the unfilled shape... Can anyone tells me what am I doing wrong?

here is the code:

local texture = Texture.new("ball5.png")

board = Shape.new()
board:setFillStyle(Shape.TEXTURE, texture, matrix)
board:setLineStyle(2,0x000000)
board:beginPath(Shape.NON_ZERO)
board:moveTo(600, 600)
board:lineTo(700, 600)
board:lineTo(700, 800)
board:lineTo(600, 800)
board:lineTo(600, 600)
board:closePath()
board:endPath()
stage:addChild(board)

Thank you!

*sorry about my english

Dislikes: EricCarr

+1 -1 (+0 / -1 )Share on Facebook

Comments

Sign In or Register to comment.