Line Thickness - love.graphics.rectangle

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
User avatar
Yell0w
Prole
Posts: 28
Joined: Wed Nov 21, 2012 7:40 am
Location: Norway
Contact:

Line Thickness - love.graphics.rectangle

Post by Yell0w »

Hi,
is it possible to specify the width of the line when drawing shapes?

I have increased the radius etc when creating thicker borders for circles and i could do the same for rectangles, but i was wondering if there was a property for the width of a given line/circle. Here is my bloated way of doing it

Code: Select all

		love.graphics.circle("line", gfxCircles[key].x, gfxCircles[key].y, gfxCircles[key].r)
		love.graphics.circle("line", gfxCircles[key].x, gfxCircles[key].y, gfxCircles[key].r+1)
		love.graphics.circle("line", gfxCircles[key].x, gfxCircles[key].y, gfxCircles[key].r+2)
You can learn anything, but you cannot learn everything!
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Line Thickness - love.graphics.rectangle

Post by kikito »

When I write def I mean function.
User avatar
Yell0w
Prole
Posts: 28
Joined: Wed Nov 21, 2012 7:40 am
Location: Norway
Contact:

Re: Line Thickness - love.graphics.rectangle

Post by Yell0w »

Thanks kikito, i feel like the worlds dumbest lover right now :oops:
You can learn anything, but you cannot learn everything!
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 203 guests