# DecemberAdventure_Poetry2

# WordsOfWisdom

For a Poetry Jam: [<u>https://itch.io/jam/poetry-jam</u>](https://itch.io/jam/poetry-jam), ***WordsOfWisdom*** uses *L5lua & L5Tracery*  to explore the poetic notion of repetition and tempo through some questionable sayings & slight kinetic motion.

## KineticPoem

[<u>https://illestpreacha.itch.io/wordsofwisdom</u>](https://illestpreacha.itch.io/wordsofwisdom)

## L5lua Code

```lua
require('L5')
require('L5-tracery')

ourText = {
  Beginning = {
    'What ever you want to be,',
    "Even when the Fruits dont bear fruit",
    "The Sweetness that is in the air may not be true,"
  },
  Ending = {"don't allow it to take over your soul",
    "Be True to yourself, your shadow and your light",
    "The magic that is in the air, let it shine bright",
    "Even the gravity may be heavier than expected"},
  origin = {
    "#Beginning# #Ending.capitalize#."
  }
}

ourText2 = {
  Beginning = {
    'Fishes may Fly, Birds May Swim',
    "Night can be Day, Day can be Night",
    "The Sweetness that is in the air may not be true,"
  },
  Ending = {"What you see, may not be true",
    ", The Lingering air isn't what it smells like",
    "May Your Dogs Meow and your Cats Crow or Bats Barks",
    ",Nonsense still contains Sense"},
  origin = {
    "#Beginning# #Ending.capitalize#."
  }
}


function setup()
 size(800, 800)
  -- Use degrees.
  angleMode(DEGREES)

end


function draw()
  
  
   
   
-- slow enough to read
    frameRate(1)
    printToScreen()
    
  --start up Tracery
  local grammar = createGrammar(ourText)
  local grammar2 = createGrammar(ourText2)

  --saved strings saved in 4
  local s = grammar:flatten("#origin#")
  local s1 = grammar2:flatten("#origin#")
  local s2 = grammar:flatten("#origin#")
  local s3 = grammar2:flatten("#origin#")
  local s4 = grammar:flatten("#origin#")
  
  -- color section
  background('gold')
  textSize(42)
  textAlign(CENTER)
  text('Words of Varying Wisdom',200,20,width)
  textSize(24)
  textAlign(LEFT)
  fill(random(0,150),random(0,200),random(50,250))
  text(s,20,20*5,width-40)
  text(s1,20,20* 10,width-40)
  
  
  -- upside down text
  push()
  scale(1,1)
  translate(760,670)
  rotate(185)
  fill(random(0,150),random(0,200),random(50,250))
  text(s2,20,20* 15,width-40)
  pop()
  
  push()
  rotate(random(-5,5))
  fill(random(0,150),random(0,200),random(50,250))
  text(s3,35,20* 22,width-40)
  pop()
  
  push()
    -- Rotate the coordinate system a little more each frame.
  local angle = frameCount * 0.5
  rotate(angle)
   fill(random(0,150),random(0,200),random(50,250))
  text(s4,35,20* 28,width-40)
  pop()
  
end
  

```
