define a name for a HEX color

0 votes
asked Oct 22, 2018 in Question / help by BAz
Is it possible to define a name for a color and assign it to a specific HEX value? For example, I use the color #f9b500 a lot in my diagrams. Instead of having to type the HEX code each time, I would like to define a name at the top of my diagram, or in an include template,  (e.g. color MYCOMPANYORANGE #f9b500) and then just use that name in my diagram.

Is this possible?


1 Answer

0 votes
answered Oct 22, 2018 by plantuml (198,780 points)
Best answer

Yes, you can do

!define MYCOMPANYORANGE f9b500

commented Oct 22, 2018 by anonymous
dammit, I came here to reply that I had discovered !define... but you beat me to it :D

Thanks for the reply, this works like a charm!