How can I change the color of an adforn
ornament ?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{adforn}
\begin{document}
\adforn{21}
\end{document}
adforn
provides its ornaments as a font, so you can change the colors like with any other font. See the xcolor
documentation for the various ways of using and defining colors.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{adforn}
\usepackage{xcolor}
\begin{document}
\textcolor{blue}{\adforn{21}}
\end{document}
Here are two ways.
Unrelated : unless your distribution is quite old, loading inputenc
is not necessary any more: utf8
is what latex expects by default.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{adforn}
\usepackage[svgnames]{xcolor}
\begin{document}
\centering {\color{VioletRed}\adforn{21}}\qquad \textcolor{DarkSeaGreen}{\adforn{21}}
\end{document}