Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Cousion distortion

This thread is locked; no one can reply to it. rss feed Print
Cousion distortion
Ariesnl
Member #2,902
November 2002
avatar

I have a function that draws a diamond shape by desiding if a point is part of the diamond or not. using a simple manhattan distance calculation.
so by setting a distance ( diameter) i can get Diamonds of all sizes.
But now I want to add coushion distortion to that diamond so the points become "sharper" and the edges become rounded.

Is there any formula to do this ?

Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard)
Current project: [Star Trek Project ] Join if you want ;-)

Peter Hull
Member #1,136
March 2001

I think the proper term is pincushion distortion. Wikipedia has some formulas.
https://en.wikipedia.org/wiki/Distortion_(optics)#Software_correction

Go to: