summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2022-03-17 10:50:51 +0100
committerMartin Haug <mhaug@live.de>2022-03-17 10:50:51 +0100
commit6f5b721fe56fe6e3735d03b07e3716fc39572639 (patch)
tree002ed75565e02baeb1ce1b9ec53f0a92491d17ab /tests/typ
parent4d617bcd67f9e42218da190dc9a0bf2f10d4b78d (diff)
CR: I'm gonna make him a refactor he can't refuse
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/graphics/line.typ27
1 files changed, 15 insertions, 12 deletions
diff --git a/tests/typ/graphics/line.typ b/tests/typ/graphics/line.typ
index d89c703a..452e52f3 100644
--- a/tests/typ/graphics/line.typ
+++ b/tests/typ/graphics/line.typ
@@ -14,6 +14,7 @@
#v(.5cm)
---
+// Test the angle argument and positioning.
#set page(fill: rgb("0B1026"))
#set line(stroke: white)
@@ -21,20 +22,22 @@
#let star(width, ..args) = box(width: width, height: width)[
#set text(spacing: 0%)
#set line(..args)
-
- #line(length: +30%, origin: (09.0%, 02%))
- #line(length: +30%, origin: (38.7%, 02%), angle: -72deg)
- #line(length: +30%, origin: (57.5%, 02%), angle: 252deg)
- #line(length: +30%, origin: (57.3%, 02%))
- #line(length: -30%, origin: (88.0%, 02%), angle: -36deg)
- #line(length: +30%, origin: (73.3%, 48%), angle: 252deg)
- #line(length: -30%, origin: (73.5%, 48%), angle: 36deg)
- #line(length: +30%, origin: (25.4%, 48%), angle: -36deg)
- #line(length: +30%, origin: (25.6%, 48%), angle: -72deg)
- #line(length: +32%, origin: (8.50%, 02%), angle: 34deg)
+
+ #align(left)[
+ #line(length: +30%, origin: (09.0%, 02%))
+ #line(length: +30%, origin: (38.7%, 02%), angle: -72deg)
+ #line(length: +30%, origin: (57.5%, 02%), angle: 252deg)
+ #line(length: +30%, origin: (57.3%, 02%))
+ #line(length: -30%, origin: (88.0%, 02%), angle: -36deg)
+ #line(length: +30%, origin: (73.3%, 48%), angle: 252deg)
+ #line(length: -30%, origin: (73.5%, 48%), angle: 36deg)
+ #line(length: +30%, origin: (25.4%, 48%), angle: -36deg)
+ #line(length: +30%, origin: (25.6%, 48%), angle: -72deg)
+ #line(length: +32%, origin: (8.50%, 02%), angle: 34deg)
+ ]
]
-#grid(columns: (1fr, ) * 3, ..((star(20pt, thickness: .5pt), ) * 9))
+#align(center, grid(columns: (1fr, ) * 3, ..((star(20pt, thickness: .5pt), ) * 9)))
---
// Test errors.