Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
RenderTarget repeat — Gideros Forum

RenderTarget repeat

local canvas = RenderTarget.new(1, 32)
local region = TextureRegion.new(canvas, 0, 0, 128, 32)
canvas:clear(0xcc0000)
stage:addChild(Bitmap.new(region))
Gideros documents say that the repeat arg of RenderTarget.new() by default is false. Running the above code creates a red rectangle 128 pixels wide but since repeat was not supplied and should be false.. the rectangle should be 1 pixel wide, shouldn't it?

So is the documentation incorrect and repeat is true by default? Or is RenderTarget wrong and not making repeat false by default?

I'm using 2018.10

Comments

Sign In or Register to comment.