Drawing Smooth Curves

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.
User avatar
Przemator
Party member
Posts: 107
Joined: Fri Sep 28, 2012 6:59 pm

Re: Drawing Smooth Curves

Post by Przemator »

Ref wrote:pattern, repeat = love.graphics.getLineStipple( )
Depreciated in Love 8.0!
Bummer.
Yes, it's deprecated. I was thinking about drawing a stencil in a comb-shaped line, then just draw a curve on it. it means only drawing 2 lines, one on which is a stencil. The problem is to calculate the coords for the comb shape, but once it's done, it can be reused.
User avatar
Garan
Prole
Posts: 17
Joined: Tue May 01, 2012 2:37 am

Re: Drawing Smooth Curves

Post by Garan »

I don't know if this works, but you could have an image of the curve you want to draw and then morph the image to suit your need (by increasing/decreasing the height/width of it).
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests