Sunday, 5 May 2024

PlantUML: Use icons from OpenIconic

OpenIconic is an open source icon set. As these icons are integrated with creole parser, you can use them in PlantUML.

 

How to see all the available icons?

Command 'listopeniconic' print all the available icons.

 

printAllIcons.txt

@startuml
listopeniconic
@enduml

Above snippet generate below command.


 


How to refer an existing icon?

Using <&icon_name> syntax, we can refer an existing icon.

 

icons.txt

@startuml

scale 1.5

Client -> Server: Client send folder structure
Server -> Client: Server process the folder


note left of Client 
euro : <&euro>
bar chart : <&bar-chart> 
end note

@enduml

Above snippet generate below diagram.



 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment