Sunday, 15 January 2023

PlantUML: Customize arrow color in a sequence diagram

We can customize the arrow color between the participants using the below notation.

p1 -[#red]> p2

 

customizeArrowColor.txt

@startuml

p1 -[#red]> p2: message 1
p1 -[#0000FF]> p2: message 1

@enduml

 

Above snippet generates below diagram.


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment