So I am working on building the Wikipedia API and trying to get the text it pulls to write itself on the screen in a human like fashion. After doing some googling I found a bit of code that does this, but it ran off the canvas window and out of site.
So then I found another snippet of code to make the text wrap around by basically increasing the y argument in fillText method and combined it to the previous code and it will now wrap around the screen. The problem I am having is that after the second row is done writing it dissappears and moves to the third row and I’m trying to figure out how to make it stay there.
I think it may have something to do with the setTransform() call but am not really sure what to do at this point so any advice would be awesome!