How to change the color of an individual element ?

+1 vote
asked Nov 6, 2012 in Closed feature request by arnaud_roques (140 points)
For example, in a class diagram, I want to change the color of one class only, leaving the other unchanged ?

Is this possible ?

Thanks,

1 Answer

+1 vote
answered Nov 6, 2012 by plantuml (223,540 points)

Hello,

You can use the # with a color name or a color code. For example:

@startuml
class Foo #red
@enduml

Or :

@startuml
participant Bob #red

Bob -> Alice : hello
@enduml

commented Nov 8, 2012 by Jan Inowolski (100 points)
What about use case diagram  or another diagram elements? When I write "(Usecase) #red" it fails with syntax error.
commented Nov 8, 2012 by plantuml (223,540 points)
Ok, this will be fixed in next release
commented Nov 8, 2012 by Jan Inowolski (100 points)
Looking forward to this change :) . Now I manage it by changing only font properties in html.
commented Nov 10, 2012 by plantuml (223,540 points)
This is corrected in version 7940.
commented Nov 10, 2012 by Jan Inowolski (100 points)
Works like a charm. Thanks!
...