It looks like you're new here. If you want to get involved, click one of these buttons!
local bitmap, x, y local atlas = RenderTarget.new(1536, 1536) x, y = 512, 0 bitmap = Bitmap.new(Texture.new("blue.png", true)) print("blue, x="..x..", y="..y..", w="..bitmap:getWidth()..", h="..bitmap:getHeight()) atlas:clear(0x008888, 1, x, y, bitmap:getWidth(), bitmap:getHeight()) bitmap:setPosition(x, y) atlas:draw(bitmap) x, y = 0, 512 bitmap = Bitmap.new(Texture.new("red.png", true)) print("red, x="..x..", y="..y..", w="..bitmap:getWidth()..", h="..bitmap:getHeight()) atlas:clear(0x888800, 1, x, y, bitmap:getWidth(), bitmap:getHeight()) bitmap:setPosition(x, y) atlas:draw(bitmap) bitmap = Bitmap.new(atlas) bitmap:setScale(320 / 1536) stage:addChild(bitmap) |
Comments
Likes: antix, SinisterSoft
Likes: antix