Sprite Size

Is there a way of working out a sprite size without having to create a table of your sprites?

If you can, a way of working out how much is actually image so you could do it with a circle as well would be AWESOME.


Didnt really understand what you want, but codea have some good function like SetContext and image.copy , so you can make big image, which will handle small sprites, and use this sprites separete with this two functions

@Ignatz there’s also

local img = readImage("Cargo Bot:Codea Icon")
local w, h = spriteSize(img)


local w, h = spriteSize("Cargo Bot:Codea Icon")