yes, but why colors variables don't pass?
And there is a way in order to load into an array colors variables using DATA?Code: QB64: [Select]
It doesn't work.
I need to pass in the sub the arrays c&(8) and t$(8), but they have always diffent values when I call the sub. I tried to pass the array into the call, but considered it is not possibile, I have done as you have said, but I have put the array creation directly into the sub.
An other question...
... at the and of the main code, instead to use _FREEIMAGE, why not use a simple CLEAR, that I think it will clear not only the images, but all variables and arrays?
For 32bit color and DATA, the best method is to simply get used to using hex values. &HAARRGGBB — alpha, red,green, blue
So full red is &HFFFF0000. (FF alpha, FF red, 00 green, 00 blue)
full blue is &HFF0000FF
full green is &HFF00FF00
And so on, so your data looks like the following for 32-bit red, green, blue:
DATA &HFFFF0000, &HFF00FF00, &HFF0000FF
Image handles not included in items for CLEAR:
https://www.qb64.org/wiki/CLEAR
The Image handles give access to blocks of memory for images, you might clear the variable handle but not the block of memory.
Not that it directly applies to your problem, but variables containing colors
should be defined _UNSIGNED LONG.