-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
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
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 @@ | ||
module fig_cairo_arc | ||
use cairo | ||
use fig_shapes | ||
use fig_canvas | ||
use fig_cairo_utils | ||
|
||
contains | ||
|
||
subroutine write_arc(canva, cr, sh) | ||
class(base_canvas), intent(inout) :: canva | ||
type(c_ptr), intent(inout):: cr | ||
type(arc), intent(in) :: sh | ||
type(canvas_point) :: c | ||
|
||
c = to_canvas ( sh%center , canva%size) | ||
call cairo_arc(cr, c%x, c%y, sh%r, sh%start_angle, sh%end_angle) | ||
call fill(cr,sh) | ||
call stroke(cr,sh) | ||
|
||
end subroutine write_arc | ||
|
||
end module fig_cairo_arc | ||
|
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