@startuml !unquoted function DRAW($x) return %set_variable_value($x, 1) !procedure $addComponent($part, $component, $as) !if %variable_exists($part) participant "$component" as $as !endif !endfunction !procedure $addBox2($part, $box, $colour, $data) !if %variable_exists($part) box "$box" #$colour !foreach $item in $data.participants $addComponent($part, $item.name, $item.as) !endfor end box !endif !endfunction DRAW(PART25) !ifdef PART25 title TESTING (Boxes & Participants) Part25 !endif !$data={"participants" :[ {"name": "XYZ" ,"as": "xyz"}, {"name": "RST" ,"as": "rst"}, {"name": "UVW" ,"as": "uvw"} ] } $addBox2("PART25", "New Box", "white", $data) xyz->rst : Message() xyz<--rst : Ack() xyz->rst : Message2() xyz->uvw : Message3() @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
Pure Javascript
PNG
SVG
ASCII Art