Rotating each individual item from a string
in
Programming Questions
•
2 years ago
Hi!
I have txt file read into a string. The names in the txt file are plotted on my canvas.
but, the canvas is rotated and translated several times with rotateX etc.
If I plot the text now it is not horizontal anymore.
The thing is that I can not rotate it back using rotateX because than the whole thing is rotated.
I want that each word is rotated individually.
the text looks like this:
text("" + aLine[i].station_names, aLine[i].x+5, -aLine[i].y+5);
As you can see the names of the text and their position is read in from the same file.
So how can I rotate each entry from aLine[i].station_names but remain their position (aLine[i].x and y)?
For example: this: / / / / / must be this: - - - - - - instead of:
_
_
_
_
Is it clear?
Can somebody please help me out here? This is driving me nuts!
If I solved this I'm done with this project...
Great thanks in advance!
2