从文档中可以清楚地看到如何使用skinparam为所有箭头着色,我可以使用颜色更改组件的整体颜色.我只是不清楚如何只为箭头着色.
例如,在下面的示例中,我如何使从component1到component3的箭头具有不同的颜色
植物UML代码
@startuml
[Component1] as 1
[Component2] as 2
[Component3] as 3
1 --> 2
1 --> 3
@enduml
Run Code Online (Sandbox Code Playgroud)
结果图
Voi*_*icu 10
在要显示的箭头内的括号内添加颜色: 1 -[#blue]-> 3
您也可以使用十六进制颜色代码:例如#0000FF而不是#blue.
@startuml
[Component1] as 1
[Component2] as 2
[Component3] as 3
1 --> 2
1 -[#blue]-> 3
@enduml
Run Code Online (Sandbox Code Playgroud)