Skewing Sprites and Text is a very useful feature that would be a nice addition to the Action system:
- Skew Top -> +/- 10 Degrees
- Skew Bottom -> +/- 10 Degrees
That example is defined as an action to skew either the top or bottom of the object (Text, Sprite, DrawingCanvas) by the input degrees. Access to the vertices of the objects quad could accomplish this as well but that is not friendly to the action system.
This effect is very useful when trying to skew text for an isometric view which is currently very difficult to accomplish.
I have created a system with the Drawing Canvas to skew text by:
1- Pasting text to the canvas and create snapshot
2- Write each pixel of the snapshot to an array and clear the snapshot pixels
3- Write each pixels from the array to the snapshot but SKEW the x position by adding a skew value to it (simulates degrees of skew)
4- Copy snapshot back to the canvas
I had to use the array intermediate step as moving pixels on the snapshot conflicting with future iterations of the pixels in that snapshot.
Also, once the skewed text was written to the canvas, I could not ROTATE the canvas to align the text with an isometric grid.
In the end, the effect I could not easily create is:
1- Skew Text
2- Rotate Text to align to isometric view