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

Reply via email to