Debian Codegraph @

texmf-dist/tex/latex/hobby/hobby-l3draw.sty

raw
1 %%
2 %% This is file `hobby-l3draw.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hobby_code.dtx (with options: `l3hobby')
8 %% ----------------------------------------------------------------
9 %% hobby --- a TikZ/PGF library for drawing smooth(ish) curves using
10 %% Hobby's algorithm (implemented in LaTeX3)
11 %% E-mail: [email protected]
12 %% Released under the LaTeX Project Public License v1.3c or later
13 %% See http://www.latex-project.org/lppl.txt
14 %% ----------------------------------------------------------------
15 %%
16 \RequirePackage{expl3}
17 \input{hobby.code.tex}
18 \ProvidesExplPackage {hobby-l3draw} {2018/02/20} {1.0} {Interface for l3draw and hobby}
19 \RequirePackage{l3draw}
20 \cs_new_protected:Npn \hobby_draw_moveto:nnn #1#2#3
21 {
22 \draw_path_canvas_moveto:n {#3}
23 }
24 \cs_set_eq:NN \hobby_draw_curveto:nnn \draw_path_canvas_curveto:nnn
25 \cs_new_protected:Npn \hobby_draw_close:n #1
26 {
27 \draw_path_close:
28 }
29 \cs_new_protected:Npn \hobby_draw_addpoint:n #1
30 {
31 \__draw_point_process:nn
32 { \__hobby_draw_addpoint:nn }
33 { \draw_point_transform:n {#1} }
34 }
35 \cs_new_protected:Npn \__hobby_draw_addpoint:nn #1#2
36 {
37 \hobby_add_point:nnnnnn {#1} {#2} {1} {1} {0} {10}
38 }
39 \cs_new_protected:Npn \hobby_draw_init:
40 {
41 \hobby_set_cmds:NNN \hobby_draw_moveto:nnn \hobby_draw_curveto:nnn \hobby_draw_close:n
42 \hobby_clear_path:
43 }
44 %%
45 %% Copyright (C) 2012-2021 by Andrew Stacey <[email protected]>
46 %%
47 %% This file may be distributed and/or modified under the conditions
48 %% of the LaTeX Project Public License, either version 1.3 of this
49 %% license or (at your option) any later version.
50 %% The latest version of this license is in:
51 %%
52 %% http://www.latex-project.org/lppl.txt
53 %%
54 %% and version 1.3 or later is part of all distributions of LaTeX
55 %% version 2005/12/01 or later.
56 %%
57 %% This work is "maintained" (as per LPPL maintenance status) by
58 %% Andrew Stacey.
59 %%
60 %% This work consists of the files hobby_code.dtx
61 %% hobby.tex
62 %% and the derived files hobby.code.tex
63 %% pgflibraryhobby.code.tex
64 %% tikzlibraryhobby.code.tex
65 %% pml3array.sty
66 %% hobby-l3draw.sty
67 %% hobby.ins
68 %% hobby.pdf
69 %% hobby_code.pdf
70 %% README.txt
71 %%
72 %%
73 %% End of file `hobby-l3draw.sty'.