Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#244 Add sprites robot and robot2 #249

Merged
merged 1 commit into from
Oct 23, 2022

Conversation

kirchsth
Copy link
Member

@kirchsth kirchsth commented Oct 22, 2022

implementation of #244

Sprites and other images

C4-PlantUML offers predefined person and robot sprites which can be directly used:

  • person,person2
  • robot, robot2
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml

Person(pB, "Sam", $sprite="person2")
Person_Ext(pA, "Bob", $sprite="person")

System_Ext(robB, "Robot A", $sprite="robot2")
System_Ext(robA, "Robot B", $sprite="robot")

SHOW_LEGEND()
@enduml

Predefined person and robot sprites

It can be tested with my extended branch

@Potherca: should I add the following sample with a robot specific legend to the readme.md too (but I think it could be too confusing without explanation)

BR Helmut

@startuml
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Component.puml

AddPersonTag(admin, $legendText="admin", $sprite="person2")
AddExternalPersonTag(user, $legendText="user", $sprite="person")

AddExternalSystemTag(cleanroomRobot, $legendText="cleanroom robot", $sprite="robot2")
AddExternalSystemTag(humanoidRobot, $legendText="humanoid robot", $sprite="robot")

Person(pA, "Person A", $sprite="person", $tags="user")
Person_Ext(pB, "Person B", $sprite="person2", $tags="admin")

System_Ext(robA, "Roboter A", $tags="humanoidRobot")
System_Ext(robB, "Roboter B", $tags="cleanroomRobot")

SHOW_LEGEND()
@enduml

@kirchsth kirchsth added this to the v2.5.0 milestone Oct 22, 2022
Copy link
Member

@Potherca Potherca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Merging this.

@Potherca Potherca merged commit 4c933e4 into plantuml-stdlib:master Oct 23, 2022
@kirchsth kirchsth deleted the feature/244_robot branch October 23, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants