Skip to content

Instantly share code, notes, and snippets.

@pencelab
Created May 15, 2021 07:49
Show Gist options
  • Save pencelab/1c06a54d1a1127c309ea4d5a9a4e4b30 to your computer and use it in GitHub Desktop.
Save pencelab/1c06a54d1a1127c309ea4d5a9a4e4b30 to your computer and use it in GitHub Desktop.
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