Tuesday, 31 October 2023

Applying Color to PlantUML Connectors

Using parenthesis, we can denote a connector.

Example

(someCharacter)

 

Using #color notation, we can apply colors to the connector.

 

addColorToConnector.txt

@startuml

start

:Activity1;
#aqua:(A)
:Activity2;
#gold:(G)
:Activity3;
#silver:(S)

stop

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment