Page 1 of 1
How do I crop images?
Posted: Sun Jan 16, 2022 11:14 am
by Yolwoocle
Title says it all. How do I crop images to draw them using
afterwards. Thought it was the kx and ky arguments but apparently not.
Re: How do I crop images?
Posted: Sun Jan 16, 2022 4:19 pm
by zorg
You don't, because there's no such thing as love.grpahics
Also, love.graphics.draw does not support cropping by itself, you need to use a Quad to do this, as one solution... and i'm somewhat certain this was answered on discord already.
Re: How do I crop images?
Posted: Mon Jan 17, 2022 4:30 am
by idbrii
You could draw with
love.graphics.setScissor to define a "window" that your drawn image is visible through.