plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.66k stars 878 forks source link

[Style] Activity: Allow to style SDL on Repeat While loop. #1707

Open The-Lum opened 2 months ago

The-Lum commented 2 months ago

Context

Observed on:

And to follow:

Wanted feature

Example

@startuml
<style>
.input {
  BackgroundColor  #ee1100
}
.output {
  BackgroundColor  #ff4422
}
.procedure {
  BackgroundColor  #feae2d
}
.load {
  BackgroundColor  #69d025
}
.save {
  BackgroundColor  #12bdb9
}
.continuous {
  BackgroundColor #3311bb
}
.task {
  BackgroundColor  #442299
}
</style>

start
  repeat :Input; <<input>>
  :Input; <<input>>
  repeat while (Successful?) is (NO)
  ->YES;
  repeat :Output; <<output>>
  :Output; <<output>>
  repeat while (Successful?) is (NO)
  ->YES;
  repeat :Procedure; <<procedure>>
  :Procedure; <<procedure>>
  repeat while (Successful?) is (NO)
  ->YES;
  repeat :Load; <<load>>
  :Load; <<load>>
  repeat while (Successful?) is (NO)
  ->YES;
  repeat :Save; <<save>>
  :Save; <<save>>
  repeat while (Successful?) is (NO)
  ->YES;
  repeat :Continuous; <<continuous>>
  :Continuous; <<continuous>>
  repeat while (Successful?) is (NO)
  ->YES;
  repeat :Task; <<task>>
  :Task; <<task>>
  repeat while (Successful?) is (NO)
  ->YES;
end
@enduml

Regards, Th.

sohmuijai commented 2 months ago

+1 please