Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Dynamic Masks using Shape - Anti Aliasing — Gideros Forum

Dynamic Masks using Shape - Anti Aliasing

adityaaditya Member
edited February 2015 in General questions
Using @OZApps code below. The edges along myMask2 appear serrated if it's not parallel to the screen. Is there solution to this?
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()
Loon Games LinkedIn Facebook Twitter - "Something bit me, gaah!"
Sign In or Register to comment.