[pstricks] [!! SPAM] Fwd: \pssquircle
Juergen Gilg
gilg at acrotex.net
Wed Jan 30 08:32:32 CET 2008
Hi Bjoern,
maybe this one helps:
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\begin{document}
\newcommand{\squircle}[2]{
\psplot[algebraic,plotpoints=200,linecolor=#2]{-#1}{#1}{(#1^4-x^4)^0.25}
\psplot[algebraic,plotpoints=200,linecolor=#2]{-#1}{#1}{-(#1^4-x^4)^0.25}
}
% #1 = radius
% #2 = linecolor
\begin{pspicture}(-5,-4)(5,4)
\squircle{4}{blue}
\squircle{2}{red}
\squircle{1}{green}
\end{pspicture}
\end{document}
Regards,
Juergen
B. Chin-Fo-Sieeuw wrote:
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
--
Jürgen Gilg
Austr. 59
70376 Stuttgart
-------------------------------------
Tel 0711.59 27 88
e-Mail gilg at acrotex.net
Websites www.acrotex.net
www.brueckenkurs-physik.de
www.gilligan-online.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080130/fa453b38/attachment.html
More information about the PSTricks
mailing list