How to change the color of while hexagon block

0 votes
asked Jul 21, 2021 in Question / help by Lei
Hi,

I want to change the block color of "more data" hexagon block. How to do that? Thanks for any help.

@startuml
repeat
  :read data;
  :generate diagrams;
repeat while (<color purple>**more data?**</color>) is (yes) -[#blue]->
@enduml

Thanks,

Lei

1 Answer

0 votes
answered Jul 21, 2021 by The-Lu (63,920 points)

Hello L.

You can use, but for all diamond:

skinparam activityDiamondBackgroundColor purple

With that:

@startuml
skinparam activityDiamondBackgroundColor purple
repeat
  :read data;
  :generate diagrams;
repeat while (<color white>**more data?**</color>) is (yes) -[#blue]->
@enduml

We observe:

If that can help,
Regards,
Th.
 

commented Jul 21, 2021 by Lei

Hi The-Lu,

This is helpful. Thanks for your help. 

I thought there might be syntax to customize the style of 

   repeat while (more data?) is (yes)
For example, 
   repeat while #red (more data?) is (yes)    // not working
I searched many documents and examples, but couldn't find any. If would be helpful to support that flexibility.
commented Jul 23, 2021 by The-Lu (63,920 points)
commented Jul 8, 2023 by Varid
But then how can I do this for a single diamond?
...