Skip to content

Instantly share code, notes, and snippets.

@pencelab
Last active May 16, 2021 04:21
Show Gist options
  • Save pencelab/777ebf29dfb685954fefe0af53aefab4 to your computer and use it in GitHub Desktop.
Save pencelab/777ebf29dfb685954fefe0af53aefab4 to your computer and use it in GitHub Desktop.
panel {
val square = square {
lines = 8
char = 'd'
}
space()
val triangle = triangle {
lines = 8
char = 'd'
}
space()
val rhombus = rhombus {
lines = 11
char = 'l'
}
space()
addShape(
square union rhombus
)
space()
addShape(
rhombus union triangle
)
space()
addShape(
square intersection rhombus
)
space()
addShape(
rhombus intersection triangle
)
space()
addShape(
square union rhombus union triangle
)
space()
addShape(
square intersection rhombus intersection triangle
)
}.print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment