Set image as drawing colour?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
RealFighter64
Prole
Posts: 1
Joined: Sun Apr 05, 2015 11:48 am

Set image as drawing colour?

Post by RealFighter64 »

Hi there,
I was wondering if there was any way to set an image as your drawing. I've found a bit of code on these forums to create rounded rectangles, and I want to make one with an image fill. I know I could use .drawq() but that doesn't work with arcs, I don't think. Is there any way to do it?
The code for the rounded rectangle is included in my .love file.
Thanks in advance,
RealFighter64
Attachments
bluelua.love
.love file
(3.19 KiB) Downloaded 80 times
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: Set image as drawing colour?

Post by veethree »

I believe what you're talking about can be done with love.graphics.setStencil().
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests