Superellipse: Difference between revisions
m
→{{header|Lambdatalk}}
(add lambdatalk code) |
|||
Line 843:
}}}
-> superellipse
</syntaxhighlight>
We use SVG and the lib_plot library defining the SVG, AXES, stroke functions to draw four superellipses, a circle, a rounded square (as required), a square and an astroid.
<syntaxhighlight lang="scheme">
{{SVG 600 600}
{g {AXES 600 600}
{polyline
{@ points="{S.map
{stroke #f00 4}}}
{polyline
{@ points="{S.map
{stroke #0f0 4}}}
{polyline
{@ points="{S.map {
{stroke #888 2}}}
{polyline
{@ points="{S.map {
{stroke #888 2}}}
}}
|