For this project we had to use words from some text to make new sentences out of another text. For my source text I chose the text from a computer science textbook. For the other text I choose song lyrics. The song was "Some nights" by Fun.
The main goal of this project was to form new random sentences and visualize them in some cool creative way. I decided to focus more on visualizing the background process of how you create the random sentences. It starts out by the source text scrolling across the screen and being filtered into group by parts-of-speech. Then the other text fades on the screen, then turns into the form or just the parts-of-speech. Then you can see random words moving into place to create the new sentences. Once the words are in order. You click on more time and the words will move slightly letting you know you are in edit mode.
In edit mode you can adjust the spacing between words, randomize the color of words, randomize the fonts, and randomize the font sizes.
- Pressing the 'w' key will decrease space between words
- Pressing the 'r' key will increase space between words
-Pressing the 'h' key will randomize the color of the words
-Pressing the 'y' key will reset the color of the words
-Pressing the 'j' key will randomize the font of the words
-Pressing the 'u' key will reset the font of the words
-Pressing the 'k' key will randomize the font size of the words
-Pressing the 'i' key will reset the font size of the words
Below I have two images of my sketch at the end of the program. The top one is when everything is default. The one below is where all the variables have been randomized.
Here is a link to the zip file of the source code:
Some lacking of the sketch is the variety of parts of speech. I only have the basic 8. So the sentences do not often flow well. Another big one is the lack of punctuation. I didn't consider it till closer to the end and basically ran out of time to try and find a way to make it work. Also I would have liked to have added more features to edit mode but again ran out of time.
No comments:
Post a Comment