It looks like you're new here. If you want to get involved, click one of these buttons!
local texture = Texture.new("bg.png",true) local myMask = Shape.new() stage:addChild(myMask) myMask:clear() myMask:setFillStyle(Shape.TEXTURE, texture) myMask:beginPath() myMask:moveTo(100,10) myMask:lineTo(120,10) myMask:lineTo(120,300) myMask:lineTo(100,300) myMask:closePath() myMask:endPath() local myMask2 = Shape.new() stage:addChild(myMask2) myMask2:clear() myMask2:setFillStyle(Shape.TEXTURE, texture) myMask2:beginPath() myMask2:moveTo(200,50) myMask2:lineTo(220,30) myMask2:lineTo(420,330) myMask2:lineTo(400,350) myMask2:closePath() myMask2:endPath() |