diff options
| author | Andrés Cuervo <acwervo@gmail.com> | 2023-03-17 18:15:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-17 18:15:59 +0000 |
| commit | 4559a14d5ff371734083cf9bb72e2c4c1a5e2afe (patch) | |
| tree | f0fe584ba72010d23a7f97ca70c1a5fdb3506b4c /docs | |
| parent | virtual vs tcl note in style guide (diff) | |
| parent | Change shapes syntax to 'draws shape offset {x y}' (diff) | |
| download | folk-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.md | 20 |
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 |
