summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndrés Cuervo <acwervo@gmail.com>2023-03-17 18:15:59 +0000
committerGitHub <noreply@github.com>2023-03-17 18:15:59 +0000
commit4559a14d5ff371734083cf9bb72e2c4c1a5e2afe (patch)
treef0fe584ba72010d23a7f97ca70c1a5fdb3506b4c /docs
parentvirtual vs tcl note in style guide (diff)
parentChange shapes syntax to 'draws shape offset {x y}' (diff)
downloadfolk-4559a14d5ff371734083cf9bb72e2c4c1a5e2afe.tar.gz
folk-4559a14d5ff371734083cf9bb72e2c4c1a5e2afe.zip
Merge pull request #23 from FolkComputer/ac/shapes
Add a basic shape syntax with "Wish $this draws ..."
Diffstat (limited to 'docs')
-rw-r--r--docs/tcl.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/tcl.md b/docs/tcl.md
index 34842cdd..12646d9f 100644
--- a/docs/tcl.md
+++ b/docs/tcl.md
@@ -64,3 +64,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