-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arc: Set previous point to arc end (#360)
The `arc` command should update the previous point to its end-point. This might be inconsistent, though, as there are no other commands setting the previous point to a non user-provided one. Should we add an option to enable/disable this @fenjalien?
- Loading branch information
1 parent
9303e08
commit c3ab713
Showing
5 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#set page(width: auto, height: auto) | ||
#import "/src/lib.typ": * | ||
|
||
#box(stroke: 2pt + red, canvas({ | ||
import draw: * | ||
|
||
arc((0,0), start: 0deg, stop: 180deg) | ||
circle((), radius: .1, fill: blue) | ||
})) | ||
|
||
#box(stroke: 2pt + red, canvas({ | ||
import draw: * | ||
|
||
arc((0,0), start: 180deg, stop: 0deg) | ||
circle((), radius: .1, fill: blue) | ||
})) | ||
|
||
#box(stroke: 2pt + red, canvas({ | ||
import draw: * | ||
|
||
arc((0,0), start: 180deg, stop: 0deg, update-position: false) | ||
circle((), radius: .1, fill: blue) | ||
})) |