File:Squircle2.svg

Summary

Description
English: Not quite exact rendering of squircle mathematical curve (defined by the equation x4+y4=r4) in SVG using cubic bezier curves.
Date (original version); 2011-11-9 (new version)
Source Made from vector PostScript source code given below
Author User:AnonMoos (Original version by en:User:SyntaxError55)
Permission
(Reusing this file)
PD
Other versions

Generated from the following vector PostScript source code (in the displayed PostScript, places where the purple is visible behind the black indicate slight deviations from a mathematically-exact squircle):

%!
306 306 translate/r4 288 dup mul dup mul def/midp r4 2 div
sqrt sqrt def/crcx{2 0 360 arc closepath fill}def/q{dup dup
mul dup mul r4 sub neg sqrt sqrt}def gsave 1 0 1 setrgbcolor
4{0 1 242{q crcx}for 0 1 242{q exch crcx}for midp midp crcx
90 rotate}repeat grestore 4 setlinewidth/x 126.2 def/y midp
2 mul 288 sub def 0 288 moveto x 288 y 288 midp midp curveto
288 y 288 x 288 0 curveto 288 x neg 288 y neg midp midp neg
curveto y -288 x -288 0 -288 curveto x neg -288 y neg -288
midp neg midp neg curveto -288 y neg -288 x neg -288 0
curveto -288 x -288 y midp neg midp curveto y neg 288 x neg
288 0 288 curveto closepath stroke showpage
%EOF

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Category:Self-published work#Squircle2.svgCategory:PD-self#Squircle2.svg

Original upload log

The original description page was here. All following user names refer to en.wikipedia.
  • 2006-11-22 13:49 SyntaxError55 544×542×0 (1981 bytes) This is my attempt to supersed [[:Image:Squircle.png]]. The original is CC, so so is this one.
Category:Squircle Category:SVG shapes Category:4-fold dihedral symmetry Category:Geometry images with dihedral symmetry#04 Category:Images with PostScript source code
Category:4-fold dihedral symmetry Category:Geometry images with dihedral symmetry Category:Images with PostScript source code Category:PD-self Category:SVG shapes Category:Self-published work Category:Squircle