diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-05-23 22:36:34 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-05-23 22:36:34 +0200 |
| commit | cd25b402816b0b4db0b310e3fff179f2a4fd7751 (patch) | |
| tree | a57445b7b59fa1fcdd64cc1c8d331d0532f8f225 /tests | |
| parent | 5ced5a69c0d4692bd625d19da290f2023ae4993d (diff) | |
Stack function
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/library/stack.png | bin | 0 -> 264 bytes | |||
| -rw-r--r-- | tests/typ/library/stack.typ | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ref/library/stack.png b/tests/ref/library/stack.png Binary files differnew file mode 100644 index 00000000..684905f7 --- /dev/null +++ b/tests/ref/library/stack.png diff --git a/tests/typ/library/stack.typ b/tests/typ/library/stack.typ new file mode 100644 index 00000000..c773ec79 --- /dev/null +++ b/tests/typ/library/stack.typ @@ -0,0 +1,9 @@ +// Test the `stack` function. + +--- +#let rect(width, color) = rect(width: width, height: 1cm, fill: color) +#stack( + rect(2cm, #2a631a), + rect(3cm, #43a127), + rect(1cm, #9feb52), +) |
