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?

sample

Note that I work on this pattern

face

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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -