Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
RenderTarget no antialiasing — Gideros Forum

RenderTarget no antialiasing

dr_maxdr_max Member
edited October 2013 in General questions
local rt = RenderTarget.new(100, 100, true)
local shape = Shape.new()

shape:setLineStyle(2,123,1)
shape:beginPath()
shape:moveTo(0,0)
shape:lineTo(100,25)
shape:endPath()
rt:draw(shape)

shape:clear()
shape:setLineStyle(2,123,1)
shape:beginPath()
shape:moveTo(100,0)
shape:lineTo(200,25)
shape:endPath()

local brt = Bitmap.new(rt)
stage:addChild(brt)
stage:addChild(shape)

Comments

Sign In or Register to comment.