We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have an 2D array now. Like this in a .txt file:
Each symbol(#、$、@) represent a image. I need translate the array into a whole picture.
What do you mean by "match them?" Can you describe in more detail what you are trying to do with the images? Are the images all the same size? Are they on a grid? Should that grid fill the screen? Etc. etc. etc.
If there are only a limited set then you can use charAt() to find the character within the string.
Then use a switch to display the correct image.
Post what you have.
https://studio.ProcessingTogether.com/sp/pad/iframe/ro.9Ql2E8JBC54LJ/latest
Answers
What do you mean by "match them?" Can you describe in more detail what you are trying to do with the images? Are the images all the same size? Are they on a grid? Should that grid fill the screen? Etc. etc. etc.
If there are only a limited set then you can use charAt() to find the character within the string.
Then use a switch to display the correct image.
Post what you have.
https://studio.ProcessingTogether.com/sp/pad/iframe/ro.9Ql2E8JBC54LJ/latest