What a smoothie you are Raul! [PS typo in line 2 ... substitute 300 for 200]
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows ________________________________ From: Programming <programming-boun...@forums.jsoftware.com> on behalf of Raul Miller <rauldmil...@gmail.com> Sent: Monday, August 15, 2022 2:19:38 PM To: Programming forum <programm...@jsoftware.com> Subject: Re: [Jprogramming] Plot a Squircle in J On Mon, Aug 15, 2022 at 6:31 AM Richard Donovan <rsdono...@hotmail.com> wrote: > I want to construct and plot a Squircle in J. > > There is a lengthy article in Wikipedia but in simple language I want my > Squircle to be defined as the continuous line between a unit circle and the > unit square that encloses it such that every point on the Squircle is the > mean of the nearest points of the circle and the square. Er... that's not what the wikipedia article says. https://en.wikipedia.org/wiki/Squircle says that a squircle is a curve between a square and a circle, but does not say anything about any such mean. That said, based on the wikipedia page, this would be a squircle: require'viewmat' viewmat 1>: +&|/~ ((i:300)%200)^4 -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm