Thursday 31 August 2023

How to Use Color Gradients in PlantUML?

Color gradient shows a transition between two or more colors. You can use color gradient for background colors. Two color names are separated by following symbols.

 

a.   |

b.   /

c.    \

d.   -

 

colorGradient.txt

@startuml

skinparam backgroundcolor white/red
skinparam classBackgroundColor gold|CornflowerBlue

class Class1

class Class2 #red-green

note left of Class2 #LightBlue\9932CC
sample note
end note

package "java.util" #YellowGreen/DimGray {
	class Dummy
}

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment