Have to say sorry, my understanding for mathematics is quite limited so programming can easily become a running the gauntlet for me. Finally I found the right formula and my checkerboard background can be drawn correctly:
But one thing I noticed though. Normally the color value 0x222222 that I used is clearly visible. In this case, if I set it as 0xFF222222 for MEM2SPRITE I got black pixels. Why?
[EDIT]
Fortunately this method works on Android nice and smooth, so it's an acceptable solution for me, even if a bit unlikely. Please pardon the inconvenience!
Code (glbasic) Select
FOR i = 0 TO 16 STEP 16
FOR j = 0 TO 16 STEP 16
FOR k = 0 TO 7
FOR l = 0 TO 7
Ima[(i * 32) + j + (k * 32) + l] = 0xFF444444
Ima[(i * 32) + 8 + j + (k * 32) + l] = 0xFF323232
Ima[256 + (i * 32) + j + (k * 32) + l] = 0xFF323232
Ima[256 + (i * 32) + 8 + j + (k * 32) + l] = 0xFF444444
NEXT
NEXT
NEXT
NEXT
But one thing I noticed though. Normally the color value 0x222222 that I used is clearly visible. In this case, if I set it as 0xFF222222 for MEM2SPRITE I got black pixels. Why?
[EDIT]
Fortunately this method works on Android nice and smooth, so it's an acceptable solution for me, even if a bit unlikely. Please pardon the inconvenience!