jarファイルをダウンロードして適当な場所に置く。
下ようなファイルを作成し、
goatprotocol.plantuml
@startuml
actor black
actor white
black -> white : message
note right: eat
white -> black : what was the message?
note left: eat
black -> white : what was the message?
note right: eat
@enduml
$ java -jar plantuml.jar -tpng goatprotocol.plantuml
!!!
出力形式は色々選べて、Ascii出力もあるらしい。
$ java -jar plantuml.jar -ttxt goatprotocol.plantuml
message
--------------------->
,---!.
|eat|_\
`-----'
what was the message?
<---------------------
,---!.
|eat|_\
`-----'
what was the message?
--------------------->
,---!.
|eat|_\
`-----'
|
|
|
|
|
|
| ,-.
| `-'
/|\
|
/ \
black
|
|
black ,-.
,-. `-'
`-' /|\
/|\ |
| / \
/ \ white
white
,-.
`-'
/|\
|
/ \
message
--------------------->
,---!.
|eat|_\
`-----'
what was the message?
<---------------------
,---!.
|eat|_\
`-----'
what was the message?
--------------------->
,---!.
|eat|_\
`-----'
激しく残念。