Algorithm Before putting each word on the canvas, it is drawn on a separate canvas to read back the pixels to record is drawn spaces. With the information, wordcloud.js will then try to find a place to fit the word that is closest to the start point.
HTML5 Word Cloud was a web technology demonstration that process text corpus into a word list, and leverages Canvas2DContext API to layout the list into a “word cloud.” This is a live canvas, reload to get a different arrangement. It started b