Skip to content

Commit

Permalink
cmd: Fix missing ellipse z coordinate (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf authored Sep 8, 2023
1 parent 5aaf5a4 commit 6c0154f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd.typ
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
("cubic", (x, top, z), (right, y, z),
(x + m * rx, top, z), (right, y + m * ry, z)),
("cubic", (right, y, z), (x, bottom, z),
(right, y - m * ry), (x + m * rx, bottom, z)),
(right, y - m * ry, z), (x + m * rx, bottom, z)),
("cubic", (x, bottom, z), (left, y, z),
(x - m * rx, bottom, z), (left, y - m * ry, z)),
("cubic", (left, y, z), (x, top, z),
Expand Down
Binary file modified tests/circle/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions tests/circle/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@
}
}
}))

#box(stroke: 2pt + red, canvas(length: .5cm, {
import draw: *

for z in range(-2, 2) {
circle((0,0,z))
}
}))

0 comments on commit 6c0154f

Please sign in to comment.