Experiment 6 - Grammar and Text
Imitate
- First I wanted to take text input. The program that I took from just displays the text that you typed. I did not want this to be the only program that I took from because not much is happening. I just needed text input.
- I moved the text input to the middle of the screen and increased the size. The original program did not remove the letters when you "backspaced" so I cleared the background as text was typed
Integrate
- I wasn't sure if I wanted the text to follow the mouse, as it is too easy and too overdone. I tested out moving the text a little as you typed
- I saw that when you "backspaced" the text would still move forward. I tried to find a way to move the text backwards but couldn't figure out how to get the length of the text input so I tested with changing the position randomly
- I thought "what if the text shakes around a lot if there is more text and less if less text". I ended up taking the textWidth() which is the width in pixels that the text takes and multiplying how much it moves by the width and constraining it to prevent it from going out of bounds
- I moved the "text movement" into draw() and decreased how much it moved. Now the text vibrates erratically.
- I wanted to add more so I got this as an example. It just prints out random text and moves it randomly.
- I wondered if I could do the same thing but using the letters in the text input. I created a class for the text and added 15 of them to the scene. They spawn in their own random position
- I tried to copy the example more by having the text randomize when you type. So each text string takes random letters from the input.
Innovate
- I wanted the final result to look like a "metal" poster, but my main inspiration was "bloodshot eyes". I added random red lines with random stroke-weights. I didn't know how to make them spawn at the borders only
- I made the background get darker and text get lighter as there were more letters.
- I also managed to get the lines to appear at the borders to have the "bloodshot eyes" look.
Reflection
I worked on everything on my own again. The finished version is how I thought it would be like when I first imagined it. It feels nice to just type random stuff and watch it bounce around the screen