Monday 1 January 2024

PlantUML: Customize element color, style in deployment diagram using inline style

We can customize the element color, style in deployment diagram using below notation.

#[color|back:color];line:color;line.[bold|dashed|dotted];text:color

elementStyles.txt

@startuml

node node1  #aqua;line:red;line.bold;text:red
cloud cloud1  #gold;line:green;line.dashed;text:blue
frame frame1  #palegreen;line:blue;line.dotted;text:red

@enduml

Above snippet generate below diagram.



 

Previous                                                    Next                                                    Home

No comments:

Post a Comment