Bibles love

When I read bibles, I find the word love show many times. I count the number in the text, it shows 657. So I decide to count love for bibles.

First, I split bibles.txt into separate sentences. Then use the keyword function to find out the keyword love. But the interesting thing is, using RiTa.js, I only could find 294 love words, which is less than counting directly in the text. The next step is to use the number of love. I count it and map it into background color when the love shows as the time goes by, the color of the canvas will become brighter until the background overwhelms the love word. The entire canvas will become a love color.

code source :




Leave a Reply

Your email address will not be published. Required fields are marked *