Created
May 15, 2021 07:49
-
-
Save pencelab/1c06a54d1a1127c309ea4d5a9a4e4b30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun Panel.triangle(init: TriangleBuilder.() -> Unit): Triangle { | |
return TriangleBuilder().apply { init() }.build().also { this.addShape(it) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment