Page 1 of 1

Shear / Skew Text

Posted: Tue Aug 27, 2013 4:10 am
by codinghands
Is there any way to shear / skew text drawn using love.graphics.print?

Cheers,

Paul

Re: Shear / Skew Text

Posted: Tue Aug 27, 2013 4:20 am
by Jasoco
Use the love.graphics.push() commands. One of them is Shear. There's also Scale and Translate. I make extensive use of them.

http://www.love2d.org/wiki/love.graphics

Look under the "Coordinate System" category.

Image

Re: Shear / Skew Text

Posted: Tue Aug 27, 2013 4:26 am
by slime
love.graphics.print's last two arguments are shearing factors for the x and y axes. love.graphics.printf will have the same in version 0.9.0.

Re: Shear / Skew Text

Posted: Tue Aug 27, 2013 4:27 am
by codinghands
Magic, totally blinded to the transform stack!

Also derp! Sorry feel pretty dumb right now... somehow managed to miss all of this. Cheers for the speedy replies!!

P