Set background color for one note

0 votes
asked Jun 30, 2016 in Wanted features by legz (510 points)
edited Jun 30, 2016 by legz

Hi,

It's possible to change activities and conditionnal items color with :

- a "#ColorCode" before the activity.

- a "#ColorCode:" before the "if".

But there is no way to set a note color.

 

@startuml
 
start
#green:if (Turn On The Game?) then (yes)
  :Having Fun;
else (no)
  #red:Not Having Fun;
  note right:sad note is sad
endif
stop
 
@enduml
 
 
It would be helpful to have a similar syntax to set notes background color, like "#ColorCode:note:My note", if possible.
 
Thanks.

1 Answer

0 votes
answered Jul 1, 2016 by plantuml (131,770 points)
selected Jul 1, 2016 by legz
 
Best answer

Thanks for the suggestion!

With last beta
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startuml
start
if (Turn On The Game?) then (yes)
  :Having Fun;
  note left #red
    this
    is
    note
  end note
else (no)
  :Not Having Fun;
  note right #blue :sad note is sad
endif
stop
@enduml


Is this what you are expecting ?

Regards,

commented Jul 1, 2016 by legz (510 points)
Thanks, that's perfect:)
...