For more further reading: [[Color in MetaPost]].
== Using colors in TikZ Testing if color is defined == To test if a color is defined, use * {{cmd|doifcolor}}* {{cmd|doifcolorelse}} Usage: <texcode>\doifcolor{color-name}{... if branch ... }\doifcolorelse{color-name}{... if branch ...}{... else branch ...}</texcode>
= Viewing pre-defined color =
|}
= Testing if color is defined =
To test if a color is defined, use
* {{cmd|doifcolor}}
* {{cmd|doifcolorelse}}
Usage:
<texcode>
\doifcolor{color-name}{... if branch ... }
\doifcolorelse{color-name}{... if branch ...}{... else branch ...}
</texcode>
= Specialized topics =