diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-21 16:19:46 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-21 16:19:46 +0100 |
| commit | 31f904a2c406953cbce334e02b37a712b9b9d016 (patch) | |
| tree | c23f6e063864d97afb9b3d58c10ce4c2877106c5 /tests/typ/compiler | |
| parent | 4af7b9118c5ce612b3d9d7dd06118ce23b731d9c (diff) | |
Split up and document shapes
Diffstat (limited to 'tests/typ/compiler')
| -rw-r--r-- | tests/typ/compiler/methods-color.typ | 4 | ||||
| -rw-r--r-- | tests/typ/compiler/show-selector.typ | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/typ/compiler/methods-color.typ b/tests/typ/compiler/methods-color.typ index 1188030a..3b165d14 100644 --- a/tests/typ/compiler/methods-color.typ +++ b/tests/typ/compiler/methods-color.typ @@ -15,8 +15,8 @@ #rect(width: 1cm, fill: c.negate()) #for x in range(0, 11) { - square(width: 9pt, fill: c.lighten(x * 10%)) + square(size: 9pt, fill: c.lighten(x * 10%)) } #for x in range(0, 11) { - square(width: 9pt, fill: c.darken(x * 10%)) + square(size: 9pt, fill: c.darken(x * 10%)) } diff --git a/tests/typ/compiler/show-selector.typ b/tests/typ/compiler/show-selector.typ index 0e9823a5..56e82769 100644 --- a/tests/typ/compiler/show-selector.typ +++ b/tests/typ/compiler/show-selector.typ @@ -5,7 +5,7 @@ #show raw.where(block: false): rect.with( radius: 2pt, outset: (y: 3pt), - inset: (x: 3pt), + inset: (x: 3pt, y: 0pt), fill: luma(230), ) @@ -27,6 +27,9 @@ with selectors and justification. code!("it"); ``` +You can use the ```rs *const T``` pointer or +the ```rs &mut T``` reference. + --- #show heading.where(level: 1): set text(red) #show heading.where(level: 2): set text(blue) |
