How do you color a partition in new Activity syntax?

0 votes
asked Apr 11, 2018 in Question / help by alevinetx (160 points)

Old syntax would support coloring a partition via:

partition Audience #LightSkyBlue {

However, in the new syntax, that fails. I tried putting it before, with a colon, as used for coloring other elements

#LightSkyBlue:partition Audience {

  but, that also fails.

What am I doing wrong?

Thank you !

1 Answer

+1 vote
answered Apr 12, 2018 by plantuml (294,960 points)
selected Apr 12, 2018 by alevinetx
 
Best answer

The exact syntax is

@startuml
:foo1;
partition #LightSkyBlue foo3 {
:foo2;
}
@enduml

Hope this helps!

commented Apr 12, 2018 by plantuml (294,960 points)
We will probably change this to accept the old syntax order
commented Apr 12, 2018 by alevinetx (160 points)
Great, thank you!

Whichever way, would you please update the documentation to reflect?


Thank you much!
commented Sep 20, 2018 by anonymous
I think that in the current version, it is the name of the partition then its color

@startuml
:foo1;
partition foo3 #LightSkyBlue {
:foo2;
}
@enduml
...