atlas_texture_src( array[128*120,byte] ) is a tmp value, copy array[128*120] bytes to array[128*128, byte] value, I don't know better way
just to copy values to altals_texture( array:[128*128,byte] ) Because wan create a array[128*128, byte] and have values If It's len haven't 128*128 will crash or write more code ( if xxx.len > 128*120: ... T_T ) you 2nd question converter func looks like good, I'll test it, Thank u.