The text helps to print the text in p5 js. The parameters are the text, x and y cordinates.
The textAlign takes LEFT , RIGHT or CENTER to align the text accordingly.
This concept is still align to me. Need to understand it better.
Need to look into createVector side also.