
A squircle is a
shape
A shape is a graphics, graphical representation of an object's form or its external boundary, outline, or external Surface (mathematics), surface. It is distinct from other object properties, such as color, Surface texture, texture, or material ...
intermediate between a
square
In geometry, a square is a regular polygon, regular quadrilateral. It has four straight sides of equal length and four equal angles. Squares are special cases of rectangles, which have four equal angles, and of rhombuses, which have four equal si ...
and a
circle
A circle is a shape consisting of all point (geometry), points in a plane (mathematics), plane that are at a given distance from a given point, the Centre (geometry), centre. The distance between any point of the circle and the centre is cal ...
. There are at least two definitions of "squircle" in use, one based on the
superellipse
A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features of semi-major axis and semi-minor axis, and symmetry about them, but defined by an equation that allows ...
, the other arising from work in
optics
Optics is the branch of physics that studies the behaviour and properties of light, including its interactions with matter and the construction of optical instruments, instruments that use or Photodetector, detect it. Optics usually describes t ...
. The word "squircle" is a
portmanteau
In linguistics, a blend—also known as a blend word, lexical blend, or portmanteau—is a word formed by combining the meanings, and parts of the sounds, of two or more words together. of the words "square" and "circle". Squircles have been applied in
design
A design is the concept or proposal for an object, process, or system. The word ''design'' refers to something that is or has been intentionally created by a thinking agent, and is sometimes used to refer to the inherent nature of something ...
and
optics
Optics is the branch of physics that studies the behaviour and properties of light, including its interactions with matter and the construction of optical instruments, instruments that use or Photodetector, detect it. Optics usually describes t ...
.
Superellipse-based squircle
In a
Cartesian coordinate system
In geometry, a Cartesian coordinate system (, ) in a plane (geometry), plane is a coordinate system that specifies each point (geometry), point uniquely by a pair of real numbers called ''coordinates'', which are the positive and negative number ...
, the
superellipse
A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features of semi-major axis and semi-minor axis, and symmetry about them, but defined by an equation that allows ...
is defined by the equation
where and are the
semi-major and
semi-minor axes, and are the and coordinates of the centre of the ellipse, and is a positive number. The squircle is then defined as the superellipse where and . Its equation is:
where is the
radius
In classical geometry, a radius (: radii or radiuses) of a circle or sphere is any of the line segments from its Centre (geometry), center to its perimeter, and in more modern usage, it is also their length. The radius of a regular polygon is th ...
of the squircle. Compare this to the
equation of a circle. When the squircle is centred at the origin, then , and it is called
Lamé's special quartic.
The
area
Area is the measure of a region's size on a surface. The area of a plane region or ''plane area'' refers to the area of a shape or planar lamina, while '' surface area'' refers to the area of an open surface or the boundary of a three-di ...
inside the squircle can be expressed in terms of the
beta function
In mathematics, the beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial coefficients. It is defined by the integral
: \Beta(z_1,z_2) = \int_0^1 t^ ...
or the
gamma function
In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
as
[where is the radius of the squircle, and is the ]lemniscate constant
In mathematics, the lemniscate constant is a transcendental mathematical constant that is the ratio of the perimeter of Bernoulli's lemniscate to its diameter, analogous to the definition of for the circle. Equivalently, the perimeter of the ...
.
''p''-norm notation
In terms of the -norm on , the squircle can be expressed as:where , is the vector denoting the centre of the squircle, and . Effectively, this is still a "circle" of points at a distance from the centre, but distance is defined differently. For comparison, the usual circle is the case , whereas the square is given by the case (the supremum norm
In mathematical analysis, the uniform norm (or ) assigns, to real- or complex-valued bounded functions defined on a set , the non-negative number
:\, f\, _\infty = \, f\, _ = \sup\left\.
This norm is also called the , the , the , or, when t ...
), and a rotated square is given by (the taxicab norm). This allows a straightforward generalization to a spherical cube, or sphube, in , or hypersphube in higher dimensions.
Fernández-Guasti squircle
Another squircle comes from work in optics. It may be called the Fernández-Guasti squircle or FG squircle, after one of its authors, to distinguish it from the superellipse-related squircle above. This kind of squircle, centered at the origin, is defined by the equation:where is the radius of the squircle, is the squareness parameter, and and are in the interval . If , the equation is a circle; if , it is a square. This equation allows a smooth parametrization of the transition to a square from a circle, without invoking infinity
Infinity is something which is boundless, endless, or larger than any natural number. It is denoted by \infty, called the infinity symbol.
From the time of the Ancient Greek mathematics, ancient Greeks, the Infinity (philosophy), philosophic ...
.
Polar form
The FG squircle's radial distance from center to edge can be described parametrically in terms of the circle radius and rotation angle:
In practice, when plotting on a computer, a small value like 0.001 can be added to the angle argument to avoid the indeterminate form
Indeterminate form is a mathematical expression that can obtain any value depending on circumstances. In calculus, it is usually possible to compute the limit of the sum, difference, product, quotient or power of two functions by taking the corres ...
when for any integer , or one can set for these cases.
Linearizing squareness
The squareness parameter in the FG squircle, while bounded between 0 and 1, results in a nonlinear interpolation of the squircle "corner" between the inner circle and the square corner. If is the intended liniearly-interpolated position of the corner, the following relationship converts to for use in the squircle formula to obtain correctly interpolated squircles:
Periodic squircle
Another type of squircle arises from trigonometry
Trigonometry () is a branch of mathematics concerned with relationships between angles and side lengths of triangles. In particular, the trigonometric functions relate the angles of a right triangle with ratios of its side lengths. The fiel ...
. This type of squircle is periodic in and has the equation
where ''r'' is the minor radius of the squircle, ''s'' is the squareness parameter, and ''x'' and ''y'' are in the interval ��r, r As ''s'' approaches 0 in the limit, the equation becomes a circle. When s = 1, the equation is a square. This shape can be visualized using online graphing calculators such as Desmos
Desmos is an advanced graphing calculator implemented as a web application and a mobile application written in TypeScript and JavaScript.
History
Desmos was founded by Eli Luberoff, a math and physics double major from Yale University, and ...
.
Similar shapes
Rounded square
A shape similar to a squircle, called a ', may be generated by separating four quarters of a circle and connecting their loose ends with straight lines, or by separating the four sides of a square and connecting them with quarter-circles. Such a shape is very similar but not identical to the squircle. Although constructing a rounded square may be conceptually and physically simpler, the squircle has a simpler equation and can be generalised much more easily. One consequence of this is that the squircle and other superellipses can be scaled up or down quite easily. This is useful where, for example, one wishes to create nested squircles.
Truncated circle
Another similar shape is a '' truncated circle'', the boundary of the intersection
In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their ...
of the regions enclosed by a square and by a concentric circle whose diameter
In geometry, a diameter of a circle is any straight line segment that passes through the centre of the circle and whose endpoints lie on the circle. It can also be defined as the longest Chord (geometry), chord of the circle. Both definitions a ...
is both greater than the length of the side of the square and less than the length of the diagonal of the square (so that each figure has interior points that are not in the interior of the other). Such shapes lack the tangent continuity possessed by both superellipses and rounded squares.
Rounded cube
A ''rounded cube'' can be defined in terms of superellipsoid
In mathematics, a superellipsoid (or super-ellipsoid) is a solid geometry, solid whose horizontal sections are superellipses (Lamé curves) with the same squareness parameter \epsilon_2, and whose vertical sections through the center are superel ...
s.
Sphube
Similar to the name ''squircle'', a ''sphube'' is a portmanteau of sphere and cube. It is the three-dimensional counterpart to the squircle. The equation for the FG-squircle in three dimensions is:
In polar coordinates, the sphube is expressed parametrically as
While the squareness parameter in this case does not behave identically to its squircle counterpart, nevertheless the surface is a sphere when and approaches a cube with sharp corners as .
Uses
Squircles are useful in optics
Optics is the branch of physics that studies the behaviour and properties of light, including its interactions with matter and the construction of optical instruments, instruments that use or Photodetector, detect it. Optics usually describes t ...
. If light is passed through a two-dimensional square aperture, the central spot in the diffraction
Diffraction is the deviation of waves from straight-line propagation without any change in their energy due to an obstacle or through an aperture. The diffracting object or aperture effectively becomes a secondary source of the Wave propagation ...
pattern can be closely modelled by a squircle or supercircle. If a rectangular aperture is used, the spot can be approximated by a superellipse
A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features of semi-major axis and semi-minor axis, and symmetry about them, but defined by an equation that allows ...
.
Squircles have also been used to construct dinner plates. A squircular plate has a larger area (and can thus hold more food) than a circular one with the same radius, but still occupies the same amount of space in a rectangular or square cupboard.
Many Nokia
Nokia Corporation is a Finnish multinational corporation, multinational telecommunications industry, telecommunications, technology company, information technology, and consumer electronics corporation, originally established as a pulp mill in 1 ...
phone models have been designed with a squircle-shaped touchpad button, as was the second generation Microsoft Zune. Apple
An apple is a round, edible fruit produced by an apple tree (''Malus'' spp.). Fruit trees of the orchard or domestic apple (''Malus domestica''), the most widely grown in the genus, are agriculture, cultivated worldwide. The tree originated ...
uses an approximation of a squircle (actually a quintic superellipse) for icons in iOS
Ios, Io or Nio (, ; ; locally Nios, Νιός) is a Greek island in the Cyclades group in the Aegean Sea. Ios is a hilly island with cliffs down to the sea on most sides. It is situated halfway between Naxos and Santorini. It is about long an ...
, iPadOS
iPadOS is a mobile operating system developed by Apple for its iPad line of tablet computers. It was given a name distinct from iOS, the operating system used by Apple's iPhones to reflect the diverging features of the two product lines, suc ...
, macOS
macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
, and the home buttons of some Apple hardware. One of the shapes for adaptive icons introduced in the Android "Oreo" operating system is a squircle. Samsung
Samsung Group (; stylised as SΛMSUNG) is a South Korean Multinational corporation, multinational manufacturing Conglomerate (company), conglomerate headquartered in the Samsung Town office complex in Seoul. The group consists of numerous a ...
uses squircle-shaped icons in their Android software overlay One UI
One UI is a user interface (UI) developed by Samsung Electronics for its smart devices, including Android (operating system), Android devices from at least late 2016 or early 2017 running Android Pie, Android 9 (Pie) and later. Succeeding Samsu ...
, and in Samsung Experience and TouchWiz
TouchWiz is a discontinued user interface developed by Samsung Electronics with partners, featuring a full touch user interface. It is sometimes incorrectly referred to as an operating system. TouchWiz was used internally by Samsung for smartphon ...
.
Italian car manufacturer Fiat
Fiat Automobiles S.p.A., commonly known as simply Fiat ( , ; ), is an Italian automobile manufacturer. It became a part of Fiat Chrysler Automobiles in 2014 and, in 2021, became a subsidiary of Stellantis through its Italian division, Stellant ...
used numerous squircles in the interior and exterior design of the third generation Panda
The giant panda (''Ailuropoda melanoleuca''), also known as the panda bear or simply panda, is a bear species endemic to China. It is characterised by its white coat with black patches around the eyes, ears, legs and shoulders. Its body is ...
.
See also
* Astroid
In mathematics, an astroid is a particular type of roulette curve: a hypocycloid with four cusp (singularity), cusps. Specifically, it is the Locus (mathematics), locus of a point on a circle as it Rolling, rolls inside a fixed circle with f ...
* Ellipse
In mathematics, an ellipse is a plane curve surrounding two focus (geometry), focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. It generalizes a circle, which is the special ty ...
* Ellipsoid
An ellipsoid is a surface that can be obtained from a sphere by deforming it by means of directional Scaling (geometry), scalings, or more generally, of an affine transformation.
An ellipsoid is a quadric surface; that is, a Surface (mathemat ...
* spaces
* Oval
An oval () is a closed curve in a plane which resembles the outline of an egg. The term is not very specific, but in some areas of mathematics (projective geometry, technical drawing, etc.), it is given a more precise definition, which may inc ...
* Squround
* Superegg
References
External links
* {{YouTube, gjtTcyWL0NA, What is the area of a Squircle? by Matt Parker
Matthew Thomas Parker (born 22 December 1980) is an Australian recreational mathematics, recreational mathematician, author, comedian, YouTube personality and Science communication, science communicator based in the United Kingdom. His book ''H ...
Online Calculator for supercircle and super-ellipse
Geometric shapes
Plane curves
Quartic curves