sprite is rendered in black and white (no colors)

0 votes
asked Nov 29, 2018 in Question / help by boshka (3,940 points)

1 Answer

0 votes
answered Nov 29, 2018 by Serge Wenger Work (15,620 points)

In PlantUML, sprites are monochrome and can have either 4, 8 or 16 gray level.

You can have colors like this:

@startuml
!define AWSPUML https://raw.githubusercontent.com/milo-minderbinder/AWS-PlantUML/release/18-2-22/dist

!includeurl AWSPUML/common.puml
!includeurl AWSPUML/General/AWScloud/AWScloud.puml

cloud "AWS" as aws <<$AWScloud>> {
}
AWSCLOUD("awsColor", "bbb", "cloud", red, stereotype)
AWSCLOUD("awsColor2")
@enduml

http://www.plantuml.com/plantuml/uml/RKrDImCn4BtdLwJ1WuLkWtiIAQLImKl5WXJFoMQqWSbacKme8lvtqvLwwcNcpRoFjodYM6f2DGlm4Gdqu_lR_l2oqqUHiJnOo-wq_8nohBuMu26J0CbooCccYBbBaGAmdwPjtcwFZgG5M0O4Ly3UtNTzr_Ssn29ApI8DM0DKnakLRM4fqtAi2Q_opq303i_n0-OQ_i6VHKrOc_OrsXNjJaMlLZSNqNgjlzMFQkTsztfukZMDtsRCR1RQUE_FQn8sm10MkWWmPFaQONx5rPkvsW25rlmB

...