From 301e4ebf308df30bd17e3653e6c206fc6141f1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Cuervo?= Date: Thu, 16 Mar 2023 13:25:12 -0400 Subject: Add rudimentary shapes & a little region docs helper --- docs/tcl.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'docs') diff --git a/docs/tcl.md b/docs/tcl.md index 61755f26..a3d8e2ed 100644 --- a/docs/tcl.md +++ b/docs/tcl.md @@ -54,3 +54,23 @@ create`. ### Singletons Capitalized namespace, like `Statements`. + + +### Working with regions + +A common pattern I've found myself doing is: + +```tcl +When /thing/ has region /r/ { + lassign $r vertices edges + lassign $vertices a b c d +} +``` + +Now you can think about addressing + +``` +a - b +| | +d - c +``` \ No newline at end of file -- cgit v1.2.3