Thursday 18 May 2023

PlantUML: Change objects color and style with inline style in use case diagram

We can customize the color or style of elements using the below inline style.

 

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

 

objInlineStyle.txt

@startuml

actor actor1
actor actor2 #pink;line:red;line.bold;text:gold

usecase usecase1 #aliceblue;line:green;line.dashed;text:red
usecase usecase2 #gold;line:blue;line.dotted;text:green

@enduml

 

Above snippet generate below diagram.


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment