Tuesday 14 May 2024

PlantUML: use skinparam to set activity background color

‘skinparam ActivityBackgroundColor’ command set the background color for the shapes, except for start, stop and diamond in the activity diagram.

Syntax

skinparam ActivityBackgroundColor [ #predefinedColorName | #hexColorNumber ]

 

Example

skinparam ActivityBackgroundColor #Red
skinparam ActivityBackgroundColor #FF0000

activityBackgroundColor.txt

@startuml

skinparam ActivityBackgroundColor #LightSalmon

title "User login flow"

start

:User enter username and password;

if (credentials are correct) then (yes)
	: Take user to the home page;
else (no)
    : Take user to the login page and **display error message**;
endif

stop

@enduml

Above snippet generate below diagram.

 


 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment