diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-11 20:37:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-11 20:37:25 +0000 |
commit | 8201bf657ae25c1e01f3821b37586c10620f5342 (patch) | |
tree | b484914d5688068b5d7651d973076509a4a8643f /Master/texmf-dist/tex/generic | |
parent | 82821cc1c6f63bf4a5e88664777f7f57ac05861e (diff) |
pst-dart (11sep21)
git-svn-id: svn://tug.org/texlive/trunk@60476 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r-- | Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex b/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex index 064a309e7ff..8b1907da5f2 100644 --- a/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex +++ b/Master/texmf-dist/tex/generic/pst-dart/pst-dart.tex @@ -1,4 +1,4 @@ -%% $Id: pst-dart.tex 728 2018-02-09 19:29:41Z herbert $ +%% $Id: pst-dart.tex 229 2021-09-11 14:35:39Z herbert $ %% %% This is file `pst-dart.tex', %% @@ -22,19 +22,21 @@ \ifx\PSTricksLoaded\endinput\else \input pstricks.tex\fi \ifx\PSTXKeyLoaded\endinput\else \input pst-xkey.tex \fi \ifx\GradientLoaded\endinput\else \input pst-grad.tex \fi +\ifx\PSTthreeDLoaded\endinput\else \input pst-3d.tex \fi % \edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax % interface to the `xkeyval' package \pst@addfams{pst-dart} % -\def\fileversion{0.02} -\def\filedate{2018/02/09} +\def\fileversion{0.03} +\def\filedate{2021/09/11} \message{`PST-dart' v\fileversion, \filedate\space (ts,hv)} % \define@key[psset]{pst-dart}{preCode}[]{\def\psk@dart@preCode{#1}} \define@key[psset]{pst-dart}{postCode}[]{\def\psk@dart@postCode{#1}} +\define@key[psset]{pst-dart}{boardview}[]{\def\psk@dart@boardview{#1}} \define@key[psset]{pst-dart}{fontsize}[10pt]{\def\psk@dart@fontsize{\fontsize{#1}{#1}}} -\psset[pst-dart]{fontsize=10pt,preCode=,postCode=} +\psset[pst-dart]{fontsize=10pt,boardview={},preCode=,postCode=} \newcmykcolor{Red}{0 1 1 0} \newcmykcolor{Green}{1 0 1 0} @@ -43,12 +45,21 @@ \def\psDartBoard@i{\@ifnextchar(\psDartBoard@ii{\psDartBoard@ii(0,0)}}% \def\psDartBoard@ii(#1){% \begingroup - \addbefore@par{unit=0.1mm}% + \addbefore@par{boardview={}}%,unit=0.1mm}% \use@par \degrees[20]% - \rput(#1){% - \begin{pspicture}(-210,-210)(210,210)% - \pstVerb{gsave \psk@dart@preCode }% + \ifx\psk@dart@boardview\@empty + \rput(#1){\psset{unit=0.1mm}\psDartBoard@iii}% + \else + \rput(#1){\psset{unit=0.1mm}% + \ThreeDput[normal=\psk@dart@boardview](0,0,0){\psDartBoard@iii}}% + \fi + \endgroup + \ignorespaces +} + +\def\psDartBoard@iii{% + \begin{pspicture}(-210,-210)(210,210)% \pscircle*(0,0){210} % Gerader Part. \psset{linewidth=0.5pt}% @@ -67,12 +78,10 @@ \pscircle[fillstyle=solid,fillcolor=Green,linecolor=gray!30,linewidth=0.5pt,linecolor=white]{15.9} \pscircle[fillstyle=solid,fillcolor=Red,linecolor=gray!30,linewidth=0.5pt,linecolor=white]{6.35} \psforeach{\iA}{6,13,4,18,1,20,5,12,9,14,11,8,16,7,19,3,17,2,15,10}{% - \rput(190;\the\psLoopIndex){\psk@dart@fontsize\selectfont\white\iA}} - \pstVerb{ \psk@dart@postCode grestore }% - \end{pspicture}}% - \endgroup - \ignorespaces + \rput(190;\the\psLoopIndex){\psk@dart@fontsize\selectfont\white\iA}} + \end{pspicture}% } + % \colorlet{gold}{orange!50!yellow} |