Hi Bill

The pst-grad that I have can do linear gradations and these can be
fiddled with gradmidpoint.
I'd like to produce a radial gradation, leading to a graphic of
Great Taste and Poignancy.
Has anyone come across a PSTrick that does this?

Look for on google "pst-grad radial circle" and you will find this:
http://www.tug.org/pipermail/pstricks/2003/001173.html
I have combined that into what I know and here is an example:

\documentclass[a4paper]{article}
\usepackage[dvips]{graphicx}
\usepackage{pstcol}
\usepackage{pst-grad}
\usepackage{multido}
\SpecialCoor
%angleA,angleB,r1,r2
\def\fillSector#1#2#3#4{%
        \pscustom[fillstyle=gradient,gradbegin=black,%
                gradend=white,gradmidpoint=0,gradangle=45]{%
                \psline(#3;#1)(#4;#1)
                \psarc(0,0){#4}{#1}{#2}
                \psline(#4;#2)(#3;#2)
                \psarcn(0,0){#3}{#2}{#1}
        }%
}

\begin{document}

\begin{pspicture}(0,0)(3,2)
\pscircle[framearc=0.25,
fillstyle=gradient,
gradangle=30,
gradbegin=yellow,
gradend=red]
(0.5,0.5){1.0}
\end{pspicture}

\begin{pspicture}(-5,-5)(5,5)
\pscircle(0,0){2}
\multido{\n=0+15}{24}{\psline[linestyle=dashed](2;\n)(5;\n)}
\fillSector{0}{60}{2}{5}
\fillSector{170}{250}{2}{5}
\end{pspicture}

\end{document}

Basically you will need to redo the code of multido to get a radial graduation.
You'll need to gooogle more on how to use mutido.

Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.

--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to