Let's face it, arrays take up a lot of memory, and kilobytes, but if you want a decent program, then you need to use graphics. To make decent graphic animations, you need arrays. So how can you calculate the size of the array? It is quite simple: arraysize = (xlength*ylength)-1.
So if your graphic is five pixels by five pixels, then your array needs to be 24 in length: array(24).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.