top of page

Generative Poem

  • Writer: Damian
    Damian
  • Dec 20, 2018
  • 1 min read

Updated: Dec 20, 2018

For the second project we had to create a poem that was randomly generated. This project needed a theme between the words and the background so I went for a night sky/ mysterious theme. To create this program I needed to use various code called "strings". With these I was able to define each as a type of word such as adjectives, nouns, etc. I then gave each string words in the corresponding category. Once this was completed I had the words randomly generate in an order I made. This made sure that no matter which word each string chose, that the sentence made sense. For the background I had ellipses randomly generate around the background with different opacities. I also gave the text random colors.



Comments


bottom of page