How to add colour to switch?

0 votes
asked Aug 22 in Question / help by anonymous

1 Answer

0 votes
answered Aug 26 by The-Lu (69,220 points)
 
Best answer

Hello A.,

For that you can use style as:

@startuml
<style>
diamond {
  BackgroundColor palegreen
  Fontcolor red
}
</style>
start
switch (test?)
case ( condition A )
  :Text 1;
case ( condition B ) 
  :Text 2;
endswitch
stop
@enduml

Regards,
Th.

...