Skip to content

Commit

Permalink
polylux: Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Feb 11, 2024
1 parent 48fc33a commit d751184
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Binary file added tests/polylux/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/polylux/ref/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/polylux/ref/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions tests/polylux/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#import "/src/lib.typ": *
#import "@preview/polylux:0.3.1" as pl
#import pl: *

#set page(width: auto, height: auto)

#polylux-slide[
Heading
#canvas(polylux: pl, {
import draw: *
import polylux: *

rect((-1,-1), (1,1), fill: red)
only(2, circle((.5,.3), fill: blue))
uncover("2-3", {
line((.2,.1), (rel: (1,1.3)), (rel: (.7, -1.8)), fill: green, close: true)
content((0, -2), [Hello])
})
})
]

0 comments on commit d751184

Please sign in to comment.