I need to get the list of predefined colors in xcolor. Hard-coding as follows is not a good coding practice.

```
\documentclass[dvipsnames,cmyk]{minimal}
\parindent=0pt
\usepackage{pstricks} 

\begin{document}
    \psforeach{\nA}
    {
        Tan, 
        RedOrange, 
        Magenta,
        Yellow,
        Green,
        Red,
        Blue,
        BrickRed,
        DarkOrchid,
        Rhodamine,
        OliveGreen,
        Mahogany,
        Goldenrod%      
    }{{\color{\nA}\nA} \endgraf}
\end{document}

```

![enter image description here](https://i.stack.imgur.com/TcAwP.png)

---

My real scenario is to create an animation as follows.

```
\documentclass[pstricks,dvipsnames,cmyk]{standalone}

\usepackage{etoolbox}

\def\temp{}

\begingroup
\renewcommand\DefineNamedColor[4]{\listgadd{\temp}{#2}}
\input{dvipsnam.def}
\endgroup
\def\do#1{#1,}
\edef\MyNames{\dolistloop{\temp}end}

\begin{document}
\psforeach{\x}{\MyNames}
{
   \expandafter\ifstrequal\expandafter{\x}{end}{}
   {
        \pspicture(\LL,\BB)(\RR,\TT)
        \pscircle*[linecolor=\x](0,0){\RR}
        \rput(0,0){\tiny\x}
        \endpspicture
        \newpage
   }
}
\end{document}

```

![enter image description here](https://i.stack.imgur.com/8VY8j.gif)