ios - Create word cloud (word mosaic) programmatically -
I am writing an iOS app that can make a word cloud or word mosaic with the selected pattern by the user. My question is, how can I calculate the coordinates of each word, randomly calculate the size of each word? Or any other approach?
Note that I work on this pattern
But instead, my app is white The mosaics will fill the white areas, while the user's picture will be preserved.
My algorithm now has to set the size and position of each size randomly, just put them there. How can I check that each word I am putting in is a different one And does not interfere with each other with a picture?
Reference:
Comments
Post a Comment