├── .github └── workflows │ ├── main.yaml │ └── typos.toml ├── BUILD.lua ├── CHANGELOG.md ├── DEPENDS.txt ├── DOCUMENTATION.pdf ├── ICON.png ├── LICENSE.txt ├── README.md ├── README_ctan.md ├── examples ├── 3Dduck.pdf ├── 3Dduck.png ├── 3Dduck.svg ├── 3Dduck.tex ├── 3Dduck_bg.png ├── AirDuck.pdf ├── AirDuck.png ├── AirDuck.svg ├── AirDuck.tex ├── AirDuck_bg.png ├── AraraDuck.pdf ├── AraraDuck.png ├── AraraDuck.svg ├── AraraDuck.tex ├── AraraDuck_bg.png ├── Arthur.pdf ├── Arthur.png ├── Arthur.svg ├── Arthur.tex ├── Arthur_bg.png ├── AstroDuck.pdf ├── AstroDuck.png ├── AstroDuck.svg ├── AstroDuck.tex ├── AstroDuck_bg.png ├── Back.pdf ├── Back.png ├── Back.svg ├── Back.tex ├── Back_bg.png ├── BeeDuck.pdf ├── BeeDuck.png ├── BeeDuck.svg ├── BeeDuck.tex ├── BeeDuck_bg.png ├── Brazil.pdf ├── Brazil.png ├── Brazil.svg ├── Brazil.tex ├── Brazil_bg.png ├── Bunny.pdf ├── Bunny.png ├── Bunny.svg ├── Bunny.tex ├── Bunny_bg.png ├── Caesar.pdf ├── Caesar.png ├── Caesar.svg ├── Caesar.tex ├── Caesar_bg.png ├── CarLaTeX.pdf ├── CarLaTeX.png ├── CarLaTeX.svg ├── CarLaTeX.tex ├── CarLaTeX_bg.png ├── Chainsaw.pdf ├── Chainsaw.png ├── Chainsaw.svg ├── Chainsaw.tex ├── Chainsaw_bg.png ├── Chef.pdf ├── Chef.png ├── Chef.svg ├── Chef.tex ├── Chef_bg.png ├── Chess.pdf ├── Chess.png ├── Chess.svg ├── Chess.tex ├── Chess_bg.png ├── Churyumov-Gerasimenko.pdf ├── Churyumov-Gerasimenko.png ├── Churyumov-Gerasimenko.svg ├── Churyumov-Gerasimenko.tex ├── Churyumov-Gerasimenko_bg.png ├── ClergyDucks.pdf ├── ClergyDucks.png ├── ClergyDucks.svg ├── ClergyDucks.tex ├── ClergyDucks_bg.png ├── Devil.pdf ├── Devil.png ├── Devil.svg ├── Devil.tex ├── Devil_bg.png ├── Donkey.pdf ├── Donkey.png ├── Donkey.svg ├── Donkey.tex ├── Donkey_bg.png ├── DuckHug.pdf ├── DuckHug.png ├── DuckHug.svg ├── DuckHug.tex ├── DuckHug_bg.png ├── DuckInBlack.pdf ├── DuckInBlack.png ├── DuckInBlack.svg ├── DuckInBlack.tex ├── DuckInBlack_bg.png ├── DuckMD.pdf ├── DuckMD.png ├── DuckMD.svg ├── DuckMD.tex ├── DuckMD_bg.png ├── DuckScout.pdf ├── DuckScout.png ├── DuckScout.svg ├── DuckScout.tex ├── DuckScout_bg.png ├── DuckWho.pdf ├── DuckWho.png ├── DuckWho.svg ├── DuckWho.tex ├── DuckWho_bg.png ├── Duck_contours.pdf ├── Duck_contours.png ├── Duck_contours.svg ├── Duck_contours.tex ├── Duck_contours_bg.png ├── Facemask.pdf ├── Facemask.png ├── Facemask.svg ├── Facemask.tex ├── Facemask_bg.png ├── FrenchDuck.pdf ├── FrenchDuck.png ├── FrenchDuck.svg ├── FrenchDuck.tex ├── FrenchDuck_bg.png ├── Frida.pdf ├── Frida.png ├── Frida.svg ├── Frida.tex ├── Frida_bg.png ├── Geisha.pdf ├── Geisha.png ├── Geisha.svg ├── Geisha.tex ├── Geisha_bg.png ├── Gert.pdf ├── Gert.png ├── Gert.svg ├── Gert.tex ├── Gert_bg.png ├── Ghost.pdf ├── Ghost.png ├── Ghost.svg ├── Ghost.tex ├── Ghost_bg.png ├── GirlWithPearlEarring.pdf ├── GirlWithPearlEarring.png ├── GirlWithPearlEarring.svg ├── GirlWithPearlEarring.tex ├── GirlWithPearlEarring_bg.png ├── GreatWall.pdf ├── GreatWall.png ├── GreatWall.svg ├── GreatWall.tex ├── GreatWall_bg.png ├── Harlequin.pdf ├── Harlequin.png ├── Harlequin.svg ├── Harlequin.tex ├── Harlequin_bg.png ├── Hilbert.pdf ├── Hilbert.png ├── Hilbert.svg ├── Hilbert.tex ├── Hilbert_bg.png ├── Horse.pdf ├── Horse.png ├── Horse.svg ├── Horse.tex ├── Horse_bg.png ├── Icon.pdf ├── Icon.tex ├── Jailbird.pdf ├── Jailbird.png ├── Jailbird.svg ├── Jailbird.tex ├── Jailbird_bg.png ├── JamesDuck.pdf ├── JamesDuck.png ├── JamesDuck.svg ├── JamesDuck.tex ├── JamesDuck_bg.png ├── KingQuackIII.pdf ├── KingQuackIII.png ├── KingQuackIII.svg ├── KingQuackIII.tex ├── KingQuackIII_bg.png ├── Knight.pdf ├── Knight.png ├── Knight.svg ├── Knight.tex ├── Knight_bg.png ├── Knuth.pdf ├── Knuth.png ├── Knuth.svg ├── Knuth.tex ├── Knuth_bg.png ├── Leonardo.pdf ├── Leonardo.png ├── Leonardo.svg ├── Leonardo.tex ├── Leonardo_bg.png ├── Manooooh.pdf ├── Manooooh.png ├── Manooooh.svg ├── Manooooh.tex ├── Manooooh_bg.png ├── MaryDuckings.pdf ├── MaryDuckings.png ├── MaryDuckings.svg ├── MaryDuckings.tex ├── MaryDuckings_bg.png ├── MayTheQuackBeWithYou.pdf ├── MayTheQuackBeWithYou.png ├── MayTheQuackBeWithYou.svg ├── MayTheQuackBeWithYou.tex ├── MayTheQuackBeWithYou_bg.png ├── MonaDuck.pdf ├── MonaDuck.png ├── MonaDuck.svg ├── MonaDuck.tex ├── MonaDuck_bg.png ├── Ninja.pdf ├── Ninja.png ├── Ninja.svg ├── Ninja.tex ├── Ninja_bg.png ├── OfficeDuck.pdf ├── OfficeDuck.png ├── OfficeDuck.svg ├── OfficeDuck.tex ├── OfficeDuck_bg.png ├── Pacduck.gif ├── Pacduck.pdf ├── Pacduck.tex ├── Pacduck_bg.png ├── PartyDuck.pdf ├── PartyDuck.png ├── PartyDuck.svg ├── PartyDuck.tex ├── PartyDuck_bg.png ├── PaulinoVanDuck.pdf ├── PaulinoVanDuck.png ├── PaulinoVanDuck.svg ├── PaulinoVanDuck.tex ├── PaulinoVanDuck_bg.png ├── Paulo.pdf ├── Paulo.png ├── Paulo.svg ├── Paulo.tex ├── Paulo_bg.png ├── Peppone.pdf ├── Peppone.png ├── Peppone.svg ├── Peppone.tex ├── Peppone_bg.png ├── Phantom.pdf ├── Phantom.png ├── Phantom.svg ├── Phantom.tex ├── Phantom_bg.png ├── Pig.pdf ├── Pig.png ├── Pig.svg ├── Pig.tex ├── Pig_bg.png ├── PopArt.pdf ├── PopArt.png ├── PopArt.svg ├── PopArt.tex ├── PopArt_bg.png ├── PrincessDuck.pdf ├── PrincessDuck.png ├── PrincessDuck.svg ├── PrincessDuck.tex ├── PrincessDuck_bg.png ├── Pythagoras.pdf ├── Pythagoras.png ├── Pythagoras.svg ├── Pythagoras.tex ├── Pythagoras_bg.png ├── QuackLongAndProsper.pdf ├── QuackLongAndProsper.png ├── QuackLongAndProsper.svg ├── QuackLongAndProsper.tex ├── QuackLongAndProsper_bg.png ├── QueenDuck.pdf ├── QueenDuck.png ├── QueenDuck.svg ├── QueenDuck.tex ├── QueenDuck_bg.png ├── QueensSwanUpper.pdf ├── QueensSwanUpper.png ├── QueensSwanUpper.svg ├── QueensSwanUpper.tex ├── QueensSwanUpper_bg.png ├── RomanDuck.pdf ├── RomanDuck.png ├── RomanDuck.svg ├── RomanDuck.tex ├── RomanDuck_bg.png ├── SadDuck.pdf ├── SadDuck.png ├── SadDuck.svg ├── SadDuck.tex ├── SadDuck_bg.png ├── SailorDuck.pdf ├── SailorDuck.png ├── SailorDuck.svg ├── SailorDuck.tex ├── SailorDuck_bg.png ├── Samcarter.pdf ├── Samcarter.png ├── Samcarter.svg ├── Samcarter.tex ├── Samcarter_bg.png ├── Shakespeare.pdf ├── Shakespeare.png ├── Shakespeare.svg ├── Shakespeare.tex ├── Shakespeare_bg.png ├── Sheep.pdf ├── Sheep.png ├── Sheep.svg ├── Sheep.tex ├── Sheep_bg.png ├── Snowduck.pdf ├── Snowduck.png ├── Snowduck.svg ├── Snowduck.tex ├── Snowduck_bg.png ├── Soup.pdf ├── Soup.png ├── Soup.svg ├── Soup.tex ├── Soup_bg.png ├── StarDucks.pdf ├── StarDucks.png ├── StarDucks.svg ├── StarDucks.tex ├── StarDucks_bg.png ├── SuperDuckBrothers.pdf ├── SuperDuckBrothers.png ├── SuperDuckBrothers.svg ├── SuperDuckBrothers.tex ├── SuperDuckBrothers_bg.png ├── Teaser.pdf ├── Teaser.png ├── Teaser.svg ├── Teaser.tex ├── Teaser_bg.png ├── Ulrike.pdf ├── Ulrike.png ├── Ulrike.svg ├── Ulrike.tex ├── Ulrike_bg.png ├── Unicorn.pdf ├── Unicorn.png ├── Unicorn.svg ├── Unicorn.tex ├── Unicorn_bg.png ├── Vampire.pdf ├── Vampire.png ├── Vampire.svg ├── Vampire.tex ├── Vampire_bg.png ├── Vietnam.pdf ├── Vietnam.png ├── Vietnam.svg ├── Vietnam.tex ├── Vietnam_bg.png ├── Viking.pdf ├── Viking.png ├── Viking.svg ├── Viking.tex ├── Viking_bg.png ├── Vikings.pdf ├── Vikings.png ├── Vikings.svg ├── Vikings.tex ├── Vikings_bg.png ├── YankeeDuck.pdf ├── YankeeDuck.png ├── YankeeDuck.svg ├── YankeeDuck.tex ├── YankeeDuck_bg.png ├── Zebra.pdf ├── Zebra.png ├── Zebra.svg ├── Zebra.tex ├── Zebra2.pdf ├── Zebra2.png ├── Zebra2.svg ├── Zebra2.tex ├── Zebra2_bg.png ├── Zebra_bg.png ├── Zorro.pdf ├── Zorro.png ├── Zorro.svg ├── Zorro.tex ├── Zorro_bg.png ├── lt3duck.pdf ├── lt3duck.png ├── lt3duck.svg ├── lt3duck.tex └── lt3duck_bg.png ├── tikzducks-doc-settings.sty ├── tikzducks-doc.tex ├── tikzducks.sty └── tikzlibraryducks.code.tex /.github/workflows/main.yaml: -------------------------------------------------------------------------------- 1 | name: Automated testing 2 | 3 | on: 4 | push: 5 | pull_request: 6 | branches: 7 | - main 8 | 9 | jobs: 10 | spelling: 11 | runs-on: ubuntu-latest 12 | steps: 13 | # Boilerplate 14 | - name: Checkout repository 15 | uses: actions/checkout@v4 16 | - name: Check spelling 17 | uses: crate-ci/typos@v1.31.1 18 | with: 19 | config: .github/workflows/typos.toml -------------------------------------------------------------------------------- /.github/workflows/typos.toml: -------------------------------------------------------------------------------- 1 | [default] 2 | locale = "en-gb" 3 | 4 | [default.extend-words] 5 | color = "color" 6 | colors = "colors" 7 | center = "center" 8 | acces = "acces" 9 | itemize = "itemize" 10 | initialy = "initialy" 11 | uncolored = "uncolored" 12 | miter = "miter" 13 | Beeing = "Beeing" 14 | Mis = "Mis" 15 | Arbor = "Arbor" 16 | artifact = "artifact" 17 | 18 | [files] 19 | extend-exclude = ["*.svg", "LICENSE.txt"] 20 | ignore-vcs = true -------------------------------------------------------------------------------- /BUILD.lua: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env texlua 2 | 3 | -- Execute with ================================================================ 4 | -- l3build tag 5 | -- l3build ctan 6 | -- 7 | -- l3build upload 8 | -- l3build clean 9 | 10 | -- Settings ==================================================================== 11 | module = "tikzducks" 12 | ctanpkg = "tikzducks" 13 | ctanprefix = "/graphics/pgf/contrib/" 14 | ctansummary = "A little fun package for using rubber ducks in TikZ" 15 | 16 | -- common settings ============================================================= 17 | -- https://github.com/samcarter/beamertheme-sam/blob/main/build-settings.lua 18 | local common_settings, build_settings = pcall(require, "../beamertheme-sam/build-settings.lua") 19 | 20 | -- collecting files for ctan =================================================== 21 | textfiles= {"README_ctan.md","DEPENDS.txt"} 22 | ctanreadme= "README_ctan.md" 23 | -------------------------------------------------------------------------------- /DEPENDS.txt: -------------------------------------------------------------------------------- 1 | hard pgf 2 | hard iftex 3 | hard epstopdf-pkg 4 | -------------------------------------------------------------------------------- /DOCUMENTATION.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/DOCUMENTATION.pdf -------------------------------------------------------------------------------- /ICON.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/ICON.png -------------------------------------------------------------------------------- /README_ctan.md: -------------------------------------------------------------------------------- 1 | ![](https://raw.githubusercontent.com/samcarter/tikzducks/main/ICON.png) 2 | 3 | # TikZducks 4 | 5 | [![License](https://img.shields.io/github/license/samcarter/tikzducks.svg?color=blue)](https://www.latex-project.org/lppl.txt) 6 | [![GitHub tag](https://img.shields.io/github/tag/samcarter/tikzducks.svg?label=current%20version&color=blue)](https://github.com/samcarter/tikzducks/releases/latest) 7 | [![CTAN](https://img.shields.io/ctan/v/tikzducks.svg?color=blue)](https://ctan.org/pkg/tikzducks) 8 | 9 | This is a little LaTeX package for ducks to be used in TikZ pictures. 10 | 11 | This project is licensed under the LaTeX Project Public License v1.3c or later, see https://www.latex-project.org/lppl.txt . 12 | 13 | The project repository, including a bug tracker, can be found at https://github.com/samcarter/tikzducks . 14 | 15 | ### Usage 16 | 17 | ```latex 18 | \documentclass{standalone} 19 | \usepackage{tikzducks} 20 | 21 | \begin{document} 22 | 23 | \begin{tikzpicture} 24 | \duck 25 | \end{tikzpicture} 26 | 27 | \end{document} 28 | ``` 29 | 30 | For more details, please consult the [package documentation](https://github.com/samcarter/tikzducks/blob/main/DOCUMENTATION.pdf). 31 | -------------------------------------------------------------------------------- /examples/3Dduck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/3Dduck.pdf -------------------------------------------------------------------------------- /examples/3Dduck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/3Dduck.png -------------------------------------------------------------------------------- /examples/3Dduck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \pgfdeclareradialshading{ballshading}{\pgfpoint{-10.5bp}{22bp}}{ 6 | color(0bp)=(yellow!50!brown!15!white); 7 | color(6bp)=(yellow!50!brown!70!white); 8 | color(20bp)=(yellow!50!brown!90!white); 9 | color(50bp)=(yellow!50!brown) 10 | } 11 | 12 | \usetikzlibrary{fadings} 13 | \tikzfading[ 14 | name=fade out, 15 | inner color=transparent!25, 16 | outer color=transparent!100 17 | ] 18 | 19 | \begin{document} 20 | 21 | \begin{tikzpicture} 22 | 23 | % bounding box 24 | \path (0.05,0.05) rectangle (2.15,2.15); 25 | 26 | \begin{pgfinterruptboundingbox} 27 | 28 | \begin{scope}[yscale=-1,scale=0.745,yshift=-83,xshift=-7.2] 29 | \shade[shading=ballshading] (1.4575,0.0899) .. controls (1.0891,0.0899) and (0.7904,0.4633) .. (0.7904,0.9238) .. controls (0.7904,1.1027) and (0.8359,1.2680) .. (0.9126,1.4038) .. controls (0.5839,1.4888) and (0.1057,2.0636) .. (0.6423,2.5769) .. controls (1.1960,3.1052) and (4.0765,2.7516) .. (2.6823,1.0319) .. controls (2.3860,1.1911) and (2.1904,1.2733) .. (2.0476,1.3123) .. controls (2.0966,1.1963) and (2.1246,1.0642) .. (2.1246,0.9238) .. controls (2.1246,0.4633) and (1.8260,0.0899) .. (1.4575,0.0899) -- cycle; 30 | \fill[white,path fading=fade out, fading transform={xshift=-14,yshift=-5}] (1.4575,0.0899) .. controls (1.0891,0.0899) and (0.7904,0.4633) .. (0.7904,0.9238) .. controls (0.7904,1.1027) and (0.8359,1.2680) .. (0.9126,1.4038) .. controls (0.5839,1.4888) and (0.1057,2.0636) .. (0.6423,2.5769) .. controls (1.1960,3.1052) and (4.0765,2.7516) .. (2.6823,1.0319) .. controls (2.3860,1.1911) and (2.1904,1.2733) .. (2.0476,1.3123) .. controls (2.0966,1.1963) and (2.1246,1.0642) .. (2.1246,0.9238) .. controls (2.1246,0.4633) and (1.8260,0.0899) .. (1.4575,0.0899) -- cycle; 31 | \end{scope} 32 | 33 | \shade[top color=orange!50!brown!30!white, bottom color=orange!50!brown] \duckpathbill; 34 | \shade[inner color=white, outer color=white!85!yellow!70!gray, rotate=-20] (0.23,1.7675) ellipse (0.0893 and 0.125); 35 | \fill[black, rotate=-20] (0.26,1.7575) ellipse (0.0357 and 0.0714); 36 | \shade[ball color=black,rotate=-20] (0.26,1.7575) circle (0.035); 37 | \shade[inner color=white, outer color=white!85!yellow!70!gray, rotate=-20] (-0.06,1.74) ellipse (0.0786 and 0.1143); 38 | \fill[black,rotate=-20] (-0.03,1.73) ellipse (0.0286 and 0.0643); 39 | \shade[ball color=black, rotate=-20] (-0.03,1.73) circle (0.0286); 40 | 41 | \end{pgfinterruptboundingbox} 42 | 43 | \end{tikzpicture} 44 | 45 | \end{document} -------------------------------------------------------------------------------- /examples/3Dduck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/3Dduck_bg.png -------------------------------------------------------------------------------- /examples/AirDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AirDuck.pdf -------------------------------------------------------------------------------- /examples/AirDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AirDuck.png -------------------------------------------------------------------------------- /examples/AirDuck.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /examples/AirDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | 4 | \usepackage{tikzducks} 5 | 6 | \begin{document} 7 | \begin{tikzpicture} 8 | \duck 9 | 10 | % wing 11 | \path (0.1,-0.15) rectangle (2.1,2.12); 12 | \begin{pgfinterruptboundingbox} 13 | \fill[orange] (0.7331,0.5229) .. controls (1.8688,-0.6326) and (2.2337,0.0383) .. (1.2819,0.7331) -- cycle; 14 | \end{pgfinterruptboundingbox} 15 | 16 | \fill[brown] (1.3848,1.6771) .. controls (1.2665,2.2823) and (0.5559,2.2697) .. (0.4000,1.6455) .. controls (0.5711,1.6714) and (0.8503,1.6562) .. (0.9926,1.6247) .. controls (0.9703,1.4641) and (1.0307,1.0718) .. (1.1444,1.0104) .. controls (1.3485,0.9002) and (1.4461,1.4498) .. (1.3848,1.6771) -- cycle; 17 | 18 | \fill[gray] (0.9153,1.4857) -- (0.9472,1.6278) -- (1.3926,1.5288) -- (1.3840,1.4228) -- cycle; 19 | \fill[gray] (0.6484,1.6773) -- (0.6601,1.7155) -- (0.7558,1.6863) -- (0.7441,1.6480) -- cycle; 20 | 21 | \draw[gray,fill=black] (0.83,1.57) circle (0.135); 22 | \draw[gray,fill=black] (0.54,1.65) circle (0.12); 23 | 24 | 25 | \end{tikzpicture} 26 | \end{document} -------------------------------------------------------------------------------- /examples/AirDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AirDuck_bg.png -------------------------------------------------------------------------------- /examples/AraraDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AraraDuck.pdf -------------------------------------------------------------------------------- /examples/AraraDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AraraDuck.png -------------------------------------------------------------------------------- /examples/AraraDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | 3 | % In honour of the cool TeX automation tool arara 4 | % https://github.com/cereda/arara 5 | \documentclass{standalone} 6 | \usepackage{tikzducks} 7 | 8 | \begin{document} 9 | 10 | \begin{tikzpicture} 11 | \duck[ 12 | parrot, 13 | bill=gray!80!black 14 | ] 15 | % wing 16 | \path (0.1,0.1) rectangle (2.1,2.4); 17 | \begin{pgfinterruptboundingbox} 18 | \shade[left color=cyan!90!blue,right color=blue!70!black] \duckpathwing; 19 | \shade[bottom color=yellow!70!brown, top color=green!40!teal] \duckpathcrazyhair; 20 | \end{pgfinterruptboundingbox} 21 | \end{tikzpicture} 22 | 23 | \end{document} 24 | 25 | -------------------------------------------------------------------------------- /examples/AraraDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AraraDuck_bg.png -------------------------------------------------------------------------------- /examples/Arthur.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Arthur.pdf -------------------------------------------------------------------------------- /examples/Arthur.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Arthur.png -------------------------------------------------------------------------------- /examples/Arthur.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \newcommand{\towelpath}{% 6 | (1.1676,0.3641) .. controls (1.1676,0.3641) and (1.3763,0.4825) .. (1.4605,0.4542) .. controls (1.5447,0.4259) and (1.4874,0.2742) .. (1.5769,0.2627) .. controls (1.6664,0.2513) and (1.7126,0.4470) .. (1.8022,0.4655) .. controls (1.8918,0.4839) and (1.9360,0.3787) .. (2.0087,0.4054) .. controls (2.0814,0.4321) and (2.0834,0.4936) .. (2.1476,0.5744) .. controls (2.1292,0.6964) and (1.9783,1.1341) .. (1.8735,1.2390) .. controls (1.6974,1.2913) and (1.2567,1.2394) .. (1.2089,1.1676) .. controls (1.1418,1.0668) and (1.1676,0.3641) .. (1.1676,0.3641) -- cycle; 7 | } 8 | 9 | \begin{document} 10 | 11 | \begin{tikzpicture}[scale=1.3] 12 | % duck %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13 | \duck[% 14 | cap=red!60!black, 15 | sunglasses, 16 | % signpost={\Large \sffamily \color{black} Rio?}, 17 | % signcolour=gray, 18 | % signback=brown!20!white, 19 | ] 20 | % towel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21 | \begin{scope}[scale=0.8] 22 | \fill[cyan!20!white] \towelpath; 23 | \begin{scope} 24 | \clip \towelpath; 25 | \foreach \shifta in {0,0.12,...,2.4}{% 26 | \fill[white,rotate around={0:(1.2,0.9)}] 27 | ($(0.1,-0.3)+(\shifta,0)$) rectangle ($(0.1,-0.3)+(\shifta,0)+(0.06,2.7)$); 28 | } 29 | \end{scope} 30 | \end{scope} 31 | % book %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 32 | \begin{scope}[rotate=40,yshift=-14,xshift=-1] 33 | \fill[red!60!black,rotate=-20] (0.40,1.20) rectangle (0.80,0.60); 34 | \node[rotate=20, color=white] at (0.88,0.70) {\parbox{0.45cm}{\tiny \sffamily Don't panic!}}; 35 | \end{scope} 36 | \end{tikzpicture} 37 | 38 | \end{document} -------------------------------------------------------------------------------- /examples/Arthur_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Arthur_bg.png -------------------------------------------------------------------------------- /examples/AstroDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AstroDuck.pdf -------------------------------------------------------------------------------- /examples/AstroDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AstroDuck.png -------------------------------------------------------------------------------- /examples/AstroDuck.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /examples/AstroDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[glasses]; 9 | 10 | \begin{scope}[scale=0.7,yshift=90,xshift=10] 11 | \fill[gray] (-2.9466,0.3003) -- (-3.1837,-0.4402) -- (-2.7744,-0.5708) -- (-2.7308,-0.4348) -- (-1.8176,-0.7262) -- (-2.6937,-2.5325) -- (-2.4891,-2.6173) -- (-1.7766,-1.1484) -- (-1.7910,-2.8438) -- (-1.5698,-2.8326) -- (-1.5560,-1.2208) -- (-0.8785,-2.6173) -- (-0.6739,-2.5325) -- (-1.5011,-0.8272) -- (-0.3532,-1.1935) -- (-0.3096,-1.0574) -- (-0.1147,-1.1196) -- (-0.0566,-0.9382) -- (-0.2516,-0.8760) -- (-0.2032,-0.7249) -- (-2.5809,0.0337) -- (-2.5373,0.1697) -- (-2.9466,0.3003) -- cycle; 12 | \end{scope} 13 | \end{tikzpicture} 14 | 15 | \end{document} 16 | -------------------------------------------------------------------------------- /examples/AstroDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/AstroDuck_bg.png -------------------------------------------------------------------------------- /examples/Back.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Back.pdf -------------------------------------------------------------------------------- /examples/Back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Back.png -------------------------------------------------------------------------------- /examples/Back.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /examples/Back.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck 9 | \fill[yellow!70!brown] (0.90,1.50) ellipse (0.50 and 0.625); 10 | \end{tikzpicture} 11 | 12 | \end{document} -------------------------------------------------------------------------------- /examples/Back_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Back_bg.png -------------------------------------------------------------------------------- /examples/BeeDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/BeeDuck.pdf -------------------------------------------------------------------------------- /examples/BeeDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/BeeDuck.png -------------------------------------------------------------------------------- /examples/BeeDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | stripes={\stripes[distance=0.4,width=0.2,rotate=0,initialx=0.15]}, 10 | alien=black, 11 | laughing 12 | ] 13 | \end{tikzpicture} 14 | 15 | \end{document} -------------------------------------------------------------------------------- /examples/BeeDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/BeeDuck_bg.png -------------------------------------------------------------------------------- /examples/Brazil.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Brazil.pdf -------------------------------------------------------------------------------- /examples/Brazil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Brazil.png -------------------------------------------------------------------------------- /examples/Brazil.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{brazilgreen}{RGB}{0,155,58}% 6 | \definecolor{brazilyellow}{RGB}{254,223,0}% 7 | \definecolor{brazilblue}{RGB}{0,39,118}% 8 | 9 | \begin{document} 10 | 11 | \begin{tikzpicture} 12 | \duck[ 13 | body=brazilyellow, 14 | shorthair=brazilgreen 15 | ] 16 | 17 | \begin{pgfinterruptboundingbox} 18 | \path[preaction={fill, brazilblue},pattern={Stars[distance=2mm,radius=0.3mm, angle=30]}, pattern color=white] \duckpathjacket; 19 | \end{pgfinterruptboundingbox} 20 | \end{tikzpicture} 21 | 22 | \end{document} -------------------------------------------------------------------------------- /examples/Brazil_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Brazil_bg.png -------------------------------------------------------------------------------- /examples/Bunny.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Bunny.pdf -------------------------------------------------------------------------------- /examples/Bunny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Bunny.png -------------------------------------------------------------------------------- /examples/Bunny.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | body=white!80!brown, 10 | bill=white!60!brown, 11 | bunny, 12 | longhair=white!60!brown 13 | ] 14 | \fill[white!60!brown] (tail) circle (0.2); 15 | \end{tikzpicture} 16 | 17 | \end{document} -------------------------------------------------------------------------------- /examples/Bunny_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Bunny_bg.png -------------------------------------------------------------------------------- /examples/Caesar.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Caesar.pdf -------------------------------------------------------------------------------- /examples/Caesar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Caesar.png -------------------------------------------------------------------------------- /examples/Caesar.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | 9 | \fill[green!50!brown!80!black, rotate around={-15:(0.47,1.88)}] (0.47,1.88) ellipse (0.055 and 0.023); 10 | \fill[green!50!brown!80!black, rotate around={15:(0.47,1.83)}] (0.47,1.83) ellipse (0.055 and 0.023); 11 | 12 | \duck[jacket=red!30!gray] 13 | 14 | \begin{pgfinterruptboundingbox} 15 | \filldraw[gray!10!white] (0.460,1.140) .. controls (0.267, 1.102) and (-0.125,0.657) .. (0.289,0.261) .. controls (0.704,-0.135) and ( 2.863,0.130) .. (1.818,1.419) .. controls (0.980, 1.000) and ( 1.240,1.378) .. (0.46,0.55) -- cycle; 16 | \end{pgfinterruptboundingbox} 17 | 18 | \draw (1.29,1.82) -- (1.19,1.77) -- (1.1,1.74) -- (1,1.74); 19 | 20 | \fill[green!50!brown!80!black, rotate around={15:(1,1.72)}] (1,1.72) ellipse (0.055 and 0.023); 21 | \fill[green!50!brown!80!black, rotate around={18:(1.1,1.716)}] (1.1,1.716) ellipse (0.055 and 0.023); 22 | \fill[green!50!brown!80!black, rotate around={45:(1.2,1.75)}] (1.2,1.75) ellipse (0.055 and 0.023); 23 | \fill[green!50!brown!80!black, rotate around={70:(1.3,1.8)}] (1.3,1.8) ellipse (0.055 and 0.023); 24 | 25 | \fill[green!50!brown!80!black, rotate around={-25:(1,1.76)}] (1,1.76) ellipse (0.055 and 0.023); 26 | \fill[green!50!brown!80!black, rotate around={-25:(1.1,1.76)}] (1.1,1.76) ellipse (0.055 and 0.023); 27 | \fill[green!50!brown!80!black, rotate around={-20:(1.19,1.79)}] (1.19,1.79) ellipse (0.055 and 0.023); 28 | \fill[green!50!brown!80!black, rotate around={10:(1.27,1.84)}] (1.27,1.84) ellipse (0.055 and 0.023); 29 | 30 | \end{tikzpicture} 31 | 32 | \end{document} -------------------------------------------------------------------------------- /examples/Caesar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Caesar_bg.png -------------------------------------------------------------------------------- /examples/CarLaTeX.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/CarLaTeX.pdf -------------------------------------------------------------------------------- /examples/CarLaTeX.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/CarLaTeX.png -------------------------------------------------------------------------------- /examples/CarLaTeX.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | pizza, 10 | squareglasses=brown!50!black, 11 | longhair=black!70!brown 12 | ] 13 | \end{tikzpicture} 14 | 15 | \end{document} -------------------------------------------------------------------------------- /examples/CarLaTeX_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/CarLaTeX_bg.png -------------------------------------------------------------------------------- /examples/Chainsaw.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chainsaw.pdf -------------------------------------------------------------------------------- /examples/Chainsaw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chainsaw.png -------------------------------------------------------------------------------- /examples/Chainsaw.tex: -------------------------------------------------------------------------------- 1 | % contributed by Ulrike Fischer 2 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 3 | \documentclass{standalone} 4 | \usepackage{tikzducks} 5 | 6 | \begin{document} 7 | 8 | \begin{tikzpicture} 9 | \duck[ 10 | cap, 11 | sunglasses 12 | ] 13 | \begin{scope}[xshift=-0.9cm,yshift=-0.15cm] 14 | \path[fill=black,nonzero rule,line width=0.015pt] (1.3814,0.4490) .. controls (1.4652,0.3909) and (1.5074,0.3790) .. (1.5839,0.3925) .. controls (1.6299,0.4006) and (1.6443,0.4064) .. (1.6722,0.4261) .. controls (1.7133,0.4547) and (1.7456,0.4992) .. (1.7616,0.5488) .. controls (1.7723,0.5828) and (1.7726,0.5922) .. (1.7617,0.6544) .. controls (1.7467,0.7394) and (1.7333,0.7584) .. (1.6422,0.8239) -- (1.5779,0.8701) -- (1.5468,0.8265) -- (1.5152,0.7821) -- (1.5679,0.7446) .. controls (1.5964,0.7236) and (1.6271,0.6969) .. (1.6358,0.6857) .. controls (1.6818,0.6257) and (1.6533,0.5297) .. (1.5822,0.5045) .. controls (1.5405,0.4904) and (1.5129,0.4956) .. (1.4639,0.5271) .. controls (1.4383,0.5433) and (1.4088,0.5628) .. (1.3969,0.5694) -- (1.3766,0.5825) -- (1.3471,0.5412) .. controls (1.3310,0.5183) and (1.3179,0.4980) .. (1.3183,0.4960) .. controls (1.3186,0.4941) and (1.3471,0.4730) .. (1.3814,0.4490) -- cycle(0.8045,0.4489) .. controls (0.8253,0.4178) and (0.8679,0.3926) .. (0.9038,0.3895) .. controls (0.9542,0.3844) and (0.9797,0.3989) .. (1.0612,0.4754) -- (1.1363,0.5462) -- (1.1566,0.5331) .. controls (1.1967,0.5067) and (1.2336,0.5059) .. (1.2643,0.5293) .. controls (1.2731,0.5362) and (1.3441,0.6336) .. (1.4232,0.7465) -- (1.5657,0.9508) -- (1.3498,1.1019) -- (1.1341,1.2524) -- (1.0991,1.2463) -- (1.0641,1.2401) -- (0.9128,1.0249) -- (0.7617,0.8090) -- (0.8142,0.7728) -- (0.8662,0.7359) -- (0.9750,0.8427) .. controls (1.0348,0.9020) and (1.0923,0.9549) .. (1.1026,0.9607) .. controls (1.1453,0.9843) and (1.2009,0.9681) .. (1.2308,0.9239) .. controls (1.2490,0.8963) and (1.2520,0.8721) .. (1.2409,0.8361) .. controls (1.2363,0.8205) and (1.1567,0.7376) .. (1.0387,0.6259) .. controls (1.0352,0.6226) and (1.0383,0.6165) .. (1.0476,0.6094) .. controls (1.0554,0.6028) and (1.0606,0.5963) .. (1.0595,0.5948) .. controls (1.0507,0.5839) and (0.9460,0.4879) .. (0.9345,0.4812) .. controls (0.9055,0.4634) and (0.8649,0.4930) .. (0.8716,0.5269) .. controls (0.8731,0.5372) and (0.9271,0.5949) .. (1.0276,0.6921) .. controls (1.1115,0.7738) and (1.1837,0.8460) .. (1.1865,0.8525) .. controls (1.1962,0.8696) and (1.1894,0.8972) .. (1.1736,0.9071) .. controls (1.1428,0.9264) and (1.1279,0.9157) .. (0.9678,0.7585) .. controls (0.8829,0.6753) and (0.8077,0.5972) .. (0.7998,0.5851) .. controls (0.7746,0.5459) and (0.7766,0.4894) .. (0.8045,0.4489) -- cycle(0.2073,1.3638) -- (0.2431,1.3427) -- (0.2218,1.3155) .. controls (0.2097,1.3007) and (0.2020,1.2873) .. (0.2035,1.2862) .. controls (0.2051,1.2852) and (0.2277,1.2818) .. (0.2532,1.2776) -- (0.3005,1.2712) -- (0.2999,1.2477) .. controls (0.3001,1.2351) and (0.2993,1.2209) .. (0.2983,1.2154) .. controls (0.2968,1.2084) and (0.3093,1.2059) .. (0.3473,1.2066) .. controls (0.3946,1.2076) and (0.3982,1.2062) .. (0.3964,1.1932) .. controls (0.3959,1.1851) and (0.3953,1.1696) .. (0.3946,1.1581) -- (0.3950,1.1368) -- (0.4341,1.1390) .. controls (0.4889,1.1427) and (0.4934,1.1401) .. (0.4899,1.1068) .. controls (0.4879,1.0917) and (0.4869,1.0781) .. (0.4872,1.0769) .. controls (0.4875,1.0749) and (0.5105,1.0736) .. (0.5378,1.0738) .. controls (0.5652,1.0739) and (0.5883,1.0720) .. (0.5888,1.0694) .. controls (0.5892,1.0668) and (0.5878,1.0518) .. (0.5852,1.0366) .. controls (0.5794,1.0049) and (0.5786,1.0054) .. (0.6299,1.0064) .. controls (0.6780,1.0069) and (0.6816,1.0055) .. (0.6807,0.9880) .. controls (0.6771,0.9359) and (0.6730,0.9405) .. (0.7258,0.9404) -- (0.7733,0.9401) -- (0.7899,0.9638) -- (0.8064,0.9874) -- (0.5577,1.1622) .. controls (0.3257,1.3252) and (0.3078,1.3394) .. (0.2978,1.3657) .. controls (0.2760,1.4213) and (0.2896,1.4732) .. (0.3334,1.5050) .. controls (0.3655,1.5280) and (0.3997,1.5348) .. (0.4337,1.5240) .. controls (0.4479,1.5192) and (0.5683,1.4395) .. (0.7002,1.3471) -- (0.9399,1.1781) -- (0.9577,1.2026) .. controls (0.9738,1.2248) and (0.9747,1.2310) .. (0.9688,1.2647) -- (0.9622,1.3023) -- (0.9233,1.2955) -- (0.8844,1.2886) -- (0.8775,1.3275) -- (0.8708,1.3658) -- (0.8296,1.3605) -- (0.7890,1.3554) -- (0.7799,1.3959) -- (0.7708,1.4357) -- (0.7326,1.4290) -- (0.6943,1.4222) -- (0.6852,1.4628) -- (0.6761,1.5026) -- (0.6350,1.4973) -- (0.5944,1.4922) -- (0.5877,1.5305) -- (0.5808,1.5694) -- (0.5419,1.5625) -- (0.5030,1.5556) -- (0.4967,1.5913) .. controls (0.4933,1.6108) and (0.4891,1.6267) .. (0.4878,1.6265) .. controls (0.4865,1.6263) and (0.4727,1.6178) .. (0.4571,1.6077) .. controls (0.4415,1.5976) and (0.4269,1.5890) .. (0.4237,1.5885) .. controls (0.4204,1.5879) and (0.4107,1.6015) .. (0.4018,1.6180) .. controls (0.3927,1.6351) and (0.3844,1.6484) .. (0.3837,1.6483) .. controls (0.3824,1.6480) and (0.3738,1.6285) .. (0.3646,1.6048) .. controls (0.3548,1.5810) and (0.3456,1.5613) .. (0.3436,1.5610) .. controls (0.3423,1.5607) and (0.3232,1.5707) .. (0.3016,1.5830) -- (0.2628,1.6062) -- (0.2734,1.5613) .. controls (0.2855,1.5113) and (0.2867,1.5122) .. (0.2317,1.5172) -- (0.1971,1.5198) -- (0.2159,1.4776) .. controls (0.2378,1.4293) and (0.2387,1.4321) .. (0.1928,1.4080) .. controls (0.1806,1.4012) and (0.1706,1.3934) .. (0.1712,1.3902) .. controls (0.1716,1.3876) and (0.1878,1.3757) .. (0.2073,1.3638) -- cycle; 15 | \end{scope} 16 | \end{tikzpicture} 17 | 18 | \end{document} -------------------------------------------------------------------------------- /examples/Chainsaw_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chainsaw_bg.png -------------------------------------------------------------------------------- /examples/Chef.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chef.pdf -------------------------------------------------------------------------------- /examples/Chef.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chef.png -------------------------------------------------------------------------------- /examples/Chef.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[% 9 | chef=white, 10 | tshirt=white, 11 | buttons=blue, 12 | rollingpin=brown!80!black] 13 | ] 14 | \end{tikzpicture} 15 | 16 | \end{document} -------------------------------------------------------------------------------- /examples/Chef_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chef_bg.png -------------------------------------------------------------------------------- /examples/Chess.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chess.pdf -------------------------------------------------------------------------------- /examples/Chess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chess.png -------------------------------------------------------------------------------- /examples/Chess_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Chess_bg.png -------------------------------------------------------------------------------- /examples/Churyumov-Gerasimenko.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Churyumov-Gerasimenko.pdf -------------------------------------------------------------------------------- /examples/Churyumov-Gerasimenko.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Churyumov-Gerasimenko.png -------------------------------------------------------------------------------- /examples/Churyumov-Gerasimenko.tex: -------------------------------------------------------------------------------- 1 | % If you try this at home, replace the `crinklepaper` with an image of the comet's surface, e.g. from https://arxiv.org/abs/1707.02945 2 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 3 | \documentclass{standalone} 4 | \usepackage{tikzducks} 5 | 6 | \begin{document} 7 | 8 | \begin{tikzpicture}[ 9 | path image/.style={ 10 | path picture={ 11 | \foreach \j in {0,...,2}{ 12 | \node at (0,\j) { 13 | \foreach \i in {1,...,6}{ 14 | \includegraphics[height=2cm]{#1} 15 | } 16 | }; 17 | } 18 | } 19 | } 20 | ] 21 | \path (0.1,0.1) rectangle (2.1,2.12); 22 | \begin{pgfinterruptboundingbox} 23 | \path[path image=crinklepaper] (0.90,1.50) ellipse (0.50 and 0.625); 24 | \path[path image=crinklepaper] \duckpathbody; 25 | \fill[gray!80!white] \duckpathbill; 26 | \fill[white!70!gray, rotate=-20] (0.23,1.7675) ellipse (0.0893 and 0.125) (-0.06,1.74) ellipse (0.0786 and 0.1143); 27 | \fill[black, rotate=-20] (0.26,1.7575) ellipse (0.0357 and 0.0714) (-0.03,1.73) ellipse (0.0286 and 0.0643); 28 | \end{pgfinterruptboundingbox} 29 | \end{tikzpicture} 30 | 31 | \end{document} -------------------------------------------------------------------------------- /examples/Churyumov-Gerasimenko_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Churyumov-Gerasimenko_bg.png -------------------------------------------------------------------------------- /examples/ClergyDucks.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/ClergyDucks.pdf -------------------------------------------------------------------------------- /examples/ClergyDucks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/ClergyDucks.png -------------------------------------------------------------------------------- /examples/ClergyDucks.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | %Father Brown 8 | \begin{tikzpicture}% 9 | \duck[tshirt=black,buttons=gray!60!white,hat=black,glasses] 10 | \fill[white,rotate=-12] (0.32,1.) rectangle (0.43,1.15); 11 | \end{tikzpicture}% 12 | % 13 | %Bishop duck 14 | \begin{tikzpicture}% 15 | \duck[tshirt=red!80!black,buttons=brown!60!black,crozier=brown!60!black] 16 | \path[fill=red!80!black] (0.5101,1.8761) .. controls (0.6355,2.4588) and (0.9681,2.6303) .. (0.9681,2.6303) -- (1.0260,2.4101) -- (1.1548,2.6202) .. controls (1.1548,2.6202) and (1.4167,2.2951) .. (1.3398,1.8247) .. controls (1.0829,1.7440) and (0.6286,1.8104) .. (0.5101,1.8761) -- cycle; 17 | \end{tikzpicture}% 18 | % 19 | %Pope duck 20 | \begin{tikzpicture}% 21 | \duck[tshirt=white!95!black,necklace=gray,buttons=gray,crozier=gray!70!black] 22 | \path[fill=white!95!black] (0.5101,1.8761) .. controls (0.6355,2.4588) and (0.9681,2.6303) .. (0.9681,2.6303) -- (1.0260,2.4101) -- (1.1548,2.6202) .. controls (1.1548,2.6202) and (1.4167,2.2951) .. (1.3398,1.8247) .. controls (1.0829,1.7440) and (0.6286,1.8104) .. (0.5101,1.8761) -- cycle; 23 | \end{tikzpicture}% 24 | 25 | \end{document} -------------------------------------------------------------------------------- /examples/ClergyDucks_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/ClergyDucks_bg.png -------------------------------------------------------------------------------- /examples/Devil.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Devil.pdf -------------------------------------------------------------------------------- /examples/Devil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Devil.png -------------------------------------------------------------------------------- /examples/Devil.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /examples/Devil.tex: -------------------------------------------------------------------------------- 1 | % contributed by Ulrike Fischer 2 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 3 | \documentclass{standalone} 4 | \usepackage{tikzducks} 5 | 6 | \begin{document} 7 | 8 | \begin{tikzpicture} 9 | \duck[ 10 | grumpy, 11 | body=red, 12 | devil=black, 13 | bill=black, 14 | grumpy 15 | ] 16 | \begin{scope}[yshift=-1.3cm,xshift=-1.8cm,scale=0.9] 17 | \fill (0.8800,1.5776) -- (0.4879,1.7266) -- (0.3956,1.7618) -- (0.8800,1.9458) -- (0.7507,1.7993) -- (1.1706,1.7993) .. controls (1.2317,1.9102) and (1.2653,2.0175) .. (1.2717,2.1245) -- (0.4838,2.1245) -- (0.6132,1.9780) -- (0.2210,2.1270) -- (0.1287,2.1620) -- (0.6132,2.3462) -- (0.4838,2.1995) -- (1.2717,2.1995) .. controls (1.2653,2.3065) and (1.2317,2.4139) .. (1.1706,2.5247) -- (0.7507,2.5247) -- (0.8800,2.3782) -- (0.4879,2.5272) -- (0.3956,2.5622) -- (0.8800,2.7464) -- (0.7507,2.5997) -- (1.2165,2.5997) .. controls (1.2844,2.4710) and (1.3392,2.3246) .. (1.3469,2.1995) -- (3.4630,2.1995) -- (3.4630,2.1245) -- (1.3469,2.1245) .. controls (1.3275,1.9688) and (1.2818,1.8391) .. (1.2165,1.7243) -- (0.7507,1.7243) -- cycle; 18 | \end{scope} 19 | \end{tikzpicture} 20 | 21 | \end{document} -------------------------------------------------------------------------------- /examples/Devil_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Devil_bg.png -------------------------------------------------------------------------------- /examples/Donkey.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Donkey.pdf -------------------------------------------------------------------------------- /examples/Donkey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Donkey.png -------------------------------------------------------------------------------- /examples/Donkey.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{fskin}{RGB}{161,140,126} 6 | \definecolor{fbill}{RGB}{238,212,191} 7 | \definecolor{fhair}{RGB}{89,72,72} 8 | 9 | \begin{document} 10 | 11 | \begin{tikzpicture} 12 | \duck[ 13 | body=fskin, 14 | bill=fbill, 15 | shorthair=fhair, 16 | bunny, 17 | inear=fbill 18 | ] 19 | \begin{pgfinterruptboundingbox} 20 | \node[fskin,rotate=45,scale=3] at (1.7,1.55) {\textsf{s}}; 21 | \fill[fhair,rotate=45] (2.4,0.13) ellipse (0.15 and 0.07); 22 | \end{pgfinterruptboundingbox} 23 | \end{tikzpicture} 24 | 25 | \end{document} -------------------------------------------------------------------------------- /examples/Donkey_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Donkey_bg.png -------------------------------------------------------------------------------- /examples/DuckHug.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckHug.pdf -------------------------------------------------------------------------------- /examples/DuckHug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckHug.png -------------------------------------------------------------------------------- /examples/DuckHug.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks,tikzlings} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[] 9 | \bear[scale=0.7,xshift=1.3cm,back] 10 | \duck[invisible,wing,yscale=-1,scale=0.8,yshift=-1.7cm,xshift=-0.2cm] 11 | \duck[invisible,wing,yscale=-1,xscale=-1,scale=0.8,yshift=-1.3cm,xshift=-2.5cm] 12 | \end{tikzpicture} 13 | 14 | \end{document} -------------------------------------------------------------------------------- /examples/DuckHug_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckHug_bg.png -------------------------------------------------------------------------------- /examples/DuckInBlack.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckInBlack.pdf -------------------------------------------------------------------------------- /examples/DuckInBlack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckInBlack.png -------------------------------------------------------------------------------- /examples/DuckInBlack.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | grumpy, 10 | body=yellow!50!brown!50!white, 11 | tshirt=white, 12 | jacket=black, 13 | tie=black, 14 | hat=black, 15 | sunglasses=black 16 | ] 17 | \end{tikzpicture} 18 | 19 | \end{document} -------------------------------------------------------------------------------- /examples/DuckInBlack_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckInBlack_bg.png -------------------------------------------------------------------------------- /examples/DuckMD.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckMD.pdf -------------------------------------------------------------------------------- /examples/DuckMD.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckMD.png -------------------------------------------------------------------------------- /examples/DuckMD.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | parting=brown!70!black, 10 | squareglasses, 11 | tshirt=teal!50!white, 12 | jacket=white, 13 | buttons=gray!50!white, 14 | stethoscope 15 | ] 16 | \end{tikzpicture} 17 | 18 | \end{document} -------------------------------------------------------------------------------- /examples/DuckMD_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckMD_bg.png -------------------------------------------------------------------------------- /examples/DuckScout.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckScout.pdf -------------------------------------------------------------------------------- /examples/DuckScout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckScout.png -------------------------------------------------------------------------------- /examples/DuckScout.tex: -------------------------------------------------------------------------------- 1 | %This is a very special duck, because yo' won the scout duck in the contest "When will @egreg reach 654321" (https://tex.meta.stackexchange.com/q/7493/36296). 2 | % In Czech, the neckerchief is called "šátek" and the woggle "turbánek", which means "little turban". 3 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 4 | \documentclass{standalone} 5 | \usepackage{tikzducks} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture} 10 | \duck[ 11 | head=yellow!60!brown!50!white, 12 | tshirt=brown!80!gray!40!white, 13 | cap=orange!50!yellow, 14 | neckerchief=orange!50!yellow, 15 | woggle=brown, bookcolour=brown!80!black, 16 | ] 17 | \begin{scope}[yshift=-3,xshift=3] 18 | \fill[brown!80!black,rotate=-20] (0.40,1.20) rectangle (0.80,0.60); 19 | \node[rotate=-20, color=white] at (0.88,0.70) {\scalebox{0.4}{\parbox{0.75cm}{\centering\tiny\sffamily Scouting\\for\\ Ducklings}}}; 20 | \end{scope} 21 | \end{tikzpicture} 22 | 23 | \end{document} -------------------------------------------------------------------------------- /examples/DuckScout_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckScout_bg.png -------------------------------------------------------------------------------- /examples/DuckWho.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckWho.pdf -------------------------------------------------------------------------------- /examples/DuckWho.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckWho.png -------------------------------------------------------------------------------- /examples/DuckWho.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{skin}{RGB}{255,225,180} 6 | \definecolor{tshirtcol}{RGB}{250,191,173} 7 | \definecolor{jacketcol}{RGB}{213,150,104} 8 | \definecolor{billcol}{RGB}{192,110,28} 9 | \definecolor{haircol}{RGB}{93,65,47} 10 | \definecolor{bowtiecol}{RGB}{178,34,34} 11 | \definecolor{buttoncol}{RGB}{139,69,19} 12 | 13 | \begin{document} 14 | 15 | \begin{tikzpicture} 16 | \duck[ 17 | body=skin, 18 | tshirt=tshirtcol, 19 | jacket=jacketcol, 20 | bill=billcol, 21 | shorthair=haircol, 22 | bowtie=bowtiecol, 23 | buttons=buttoncol, 24 | lapel=buttoncol 25 | ] 26 | 27 | \fill[bowtiecol!90!black] (0.8917,2.5914) -- (0.6866,2.1570) -- (1.2741,2.0026) -- (1.3298,2.4782) -- cycle; 28 | \fill[bowtiecol!90!black] (1.2745,1.9943) .. controls (1.2595,1.9415) and (1.1166,1.9358) .. (0.9553,1.9816) .. controls (0.8778,2.0035) and (0.8063,2.0347) .. (0.7567,2.0682) .. controls (0.7070,2.1017) and (0.6832,2.1348) .. (0.6904,2.1602) .. controls (0.7054,2.2130) and (0.8482,2.2187) .. (1.0096,2.1729) .. controls (1.0871,2.1508) and (1.1585,2.1196) .. (1.2082,2.0861) .. controls (1.2578,2.0526) and (1.2817,2.0195) .. (1.2745,1.9943) -- cycle; 29 | \fill[bowtiecol] (1.3298,2.4782) .. controls (1.3232,2.4546) and (1.2937,2.4384) .. (1.2479,2.4334) .. controls (1.2021,2.4284) and (1.1439,2.4347) .. (1.0858,2.4513) .. controls (0.9651,2.4855) and (0.8785,2.5532) .. (0.8924,2.6024) .. controls (0.8991,2.6260) and (0.9285,2.6421) .. (0.9743,2.6472) .. controls (1.0201,2.6522) and (1.0784,2.6458) .. (1.1365,2.6293) .. controls (1.2572,2.5951) and (1.3439,2.5274) .. (1.3298,2.4782) -- cycle; 30 | \fill[black] (1.1279,2.6068) .. controls (1.1137,2.6109) and (1.0971,2.5965) .. (1.0909,2.5746) .. controls (1.0848,2.5528) and (1.0912,2.5318) .. (1.1054,2.5278) .. controls (1.1067,2.5274) and (1.1081,2.5273) .. (1.1093,2.5271) -- (1.2159,2.4245) -- (1.1887,2.2660) .. controls (1.1723,2.2597) and (1.1575,2.2411) .. (1.1509,2.2178) .. controls (1.1414,2.1845) and (1.1515,2.1523) .. (1.1731,2.1461) .. controls (1.1949,2.1400) and (1.2203,2.1621) .. (1.2298,2.1955) .. controls (1.2375,2.2229) and (1.2323,2.2504) .. (1.2170,2.2622) -- (1.2464,2.4344) -- (1.1342,2.5426) .. controls (1.1378,2.5477) and (1.1406,2.5536) .. (1.1424,2.5599) .. controls (1.1486,2.5819) and (1.1421,2.6028) .. (1.1279,2.6068) -- cycle; 31 | \fill[gray] (1.1125,0.4972) .. controls (0.9954,0.3242) and (0.8800,0.1977) .. (0.8546,0.2148) .. controls (0.8292,0.2321) and (0.9034,0.3862) .. (1.0205,0.5594) .. controls (1.1374,0.7325) and (1.2528,0.8589) .. (1.2783,0.8417) .. controls (1.3037,0.8246) and (1.2294,0.6703) .. (1.1125,0.4972) -- cycle; 32 | \fill[green!50!yellow] (1.1796,0.7261) .. controls (1.1365,0.6666) and (1.0973,0.6213) .. (1.0922,0.6250) .. controls (1.0871,0.6286) and (1.1180,0.6799) .. (1.1611,0.7395) .. controls (1.2043,0.7991) and (1.2435,0.8443) .. (1.2485,0.8406) .. controls (1.2537,0.8368) and (1.2228,0.7856) .. (1.1796,0.7261) -- cycle (1.2011,0.7105) .. controls (1.1578,0.6510) and (1.1188,0.6057) .. (1.1137,0.6095) .. controls (1.1086,0.6132) and (1.1394,0.6644) .. (1.1826,0.7239) .. controls (1.2258,0.7835) and (1.2650,0.8287) .. (1.2701,0.8250) .. controls (1.2752,0.8213) and (1.2443,0.7701) .. (1.2011,0.7105) -- cycle (1.2225,0.6950) .. controls (1.1793,0.6354) and (1.1402,0.5902) .. (1.1351,0.5939) .. controls (1.1300,0.5976) and (1.1609,0.6489) .. (1.2040,0.7084) .. controls (1.2472,0.7679) and (1.2864,0.8131) .. (1.2914,0.8094) .. controls (1.2966,0.8058) and (1.2657,0.7545) .. (1.2225,0.6950) -- cycle; 33 | \end{tikzpicture} 34 | 35 | \end{document} -------------------------------------------------------------------------------- /examples/DuckWho_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/DuckWho_bg.png -------------------------------------------------------------------------------- /examples/Duck_contours.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Duck_contours.pdf -------------------------------------------------------------------------------- /examples/Duck_contours.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Duck_contours.png -------------------------------------------------------------------------------- /examples/Duck_contours.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /examples/Duck_contours.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks,tikzlings} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | 9 | \path (0.1,0.08) rectangle (2.12,2.14); 10 | 11 | \draw[overlay,cm={{0.75,0.0,0.0,-0.75,(0.0,2.2)}}] (1.1800,0.0899) .. controls (0.8116,0.0899) and (0.5129,0.4633) .. (0.5129,0.9238) .. controls (0.5129,1.1027) and (0.5584,1.2680) .. (0.6351,1.4038) .. controls (0.3064,1.4888) and (-0.1718,2.0636) .. (0.3648,2.5769) .. controls (0.9185,3.1052) and (3.7990,2.7516) .. (2.4048,1.0319) .. controls (2.1085,1.1911) and (1.9129,1.2733) .. (1.7701,1.3123) .. controls (1.8191,1.1963) and (1.8471,1.0642) .. (1.8471,0.9238) .. controls (1.8471,0.4633) and (1.5485,0.0899) .. (1.1800,0.0899) -- cycle; 12 | \draw[fill=white] \duckpathbill; 13 | \draw[rotate=-20] (0.23,1.7675) ellipse[x radius=0.0893, y radius=0.125]; 14 | \draw[rotate=-20] (0.26,1.7575) ellipse[x radius=0.0357, y radius=0.0714]; 15 | \draw[rotate=-20] (-0.06,1.74) ellipse[x radius=0.0786, y radius=0.1143]; 16 | \draw[ rotate=-20] (-0.03,1.73) ellipse[x radius=0.0286, y radius=0.0643]; 17 | 18 | \end{tikzpicture} 19 | 20 | \end{document} -------------------------------------------------------------------------------- /examples/Duck_contours_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Duck_contours_bg.png -------------------------------------------------------------------------------- /examples/Facemask.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Facemask.pdf -------------------------------------------------------------------------------- /examples/Facemask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Facemask.png -------------------------------------------------------------------------------- /examples/Facemask.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[] 9 | 10 | \begin{pgfinterruptboundingbox} 11 | \fill[cyan!10!white] (1.4051,1.5586) .. controls (1.1370,1.3225) and (0.8775,1.2365) .. (0.5844,1.3462) .. controls (0.5190,1.3848) and (0.4601,1.4391) .. (0.3414,1.4100) .. controls (-0.1044,0.8610) and (1.0760,1.1140) .. (1.3547,1.2073) -- (1.3698,1.2679) .. controls (1.2783,1.2261) and (1.1035,1.2035) .. (0.9324,1.1895) -- (0.9600,1.2509) .. controls (1.1068,1.2809) and (1.2985,1.3700) .. (1.4071,1.4930) -- cycle; 12 | \end{pgfinterruptboundingbox} 13 | 14 | \duck[scale=0.05, shift={(6,22.3)}] 15 | \duck[scale=0.05, shift={(7.8,24.8)}] 16 | \duck[scale=0.05, shift={(10,22)}] 17 | \duck[scale=0.05, shift={(12.5,23.5)}] 18 | \duck[scale=0.05, shift={(15,22)}] 19 | 20 | \end{tikzpicture} 21 | 22 | \end{document} -------------------------------------------------------------------------------- /examples/Facemask_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Facemask_bg.png -------------------------------------------------------------------------------- /examples/FrenchDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/FrenchDuck.pdf -------------------------------------------------------------------------------- /examples/FrenchDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/FrenchDuck.png -------------------------------------------------------------------------------- /examples/FrenchDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | body=yellow!60!red!30!white, 10 | tshirt=white!90!yellow, 11 | stripes={\stripes[color=blue!70!black,rotate=-87,width=0.07,distance=0.12]}, 12 | beret=blue!30!black, 13 | baguette=brown 14 | ] 15 | \end{tikzpicture} 16 | 17 | \end{document} -------------------------------------------------------------------------------- /examples/FrenchDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/FrenchDuck_bg.png -------------------------------------------------------------------------------- /examples/Frida.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Frida.pdf -------------------------------------------------------------------------------- /examples/Frida.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Frida.png -------------------------------------------------------------------------------- /examples/Frida.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | 9 | \duck[ 10 | jacket=black, 11 | ] 12 | 13 | % hair 14 | \fill[black,overlay] (1.3543,1.2009) .. controls (1.7956,2.3034) and (0.3811,2.5095) .. (0.4156,1.6027) .. controls (0.4320,1.8832) and (0.9156,1.9103) .. (0.9156,1.9103) .. controls (0.9889,1.4396) and (1.4358,1.7248) .. (1.3543,1.2009) -- cycle; 15 | \fill[black] (1.25,1.95) circle (0.25); 16 | 17 | % eye brows 18 | \fill[black, rounded corners=1, rotate=70] (1.92,-0.1) rectangle ++(0.08,-0.3); 19 | \fill[black, rounded corners=1, rotate=80] (1.87,-0.12) rectangle ++(0.08,-0.25); 20 | 21 | % fabric pattern 22 | \begin{scope}[overlay] 23 | \clip \duckpathjacket; 24 | % image from https://i.pinimg.com/originals/37/1f/d1/371fd17e4a27b11dccc261d9d18c0a21.jpg 25 | \node at (1.1,1) {\includegraphics[width=2cm]{Frida_fabric}}; 26 | \end{scope} 27 | 28 | \begin{scope}[shift={(-0.09,-0.09)}] 29 | \path[fill=red!70!black,overlay] (1.9613,1.4427) .. controls (1.8440,1.3835) and (1.7300,1.3506) .. (1.6485,1.3157) .. controls (1.5671,1.2809) and (1.5012,1.2563) .. (1.4464,1.2380) .. controls (1.3916,1.2196) and (1.3477,1.2076) .. (1.3102,1.1979) .. controls (1.2727,1.1882) and (1.2414,1.1808) .. (1.2119,1.1717) .. controls (1.1823,1.1628) and (1.1544,1.1522) .. (1.1235,1.1361) .. controls (1.0926,1.1200) and (0.9771,1.0259) .. (0.9354,0.9947) .. controls (0.8938,0.9635) and (0.8446,0.9229) .. (0.7829,0.8689) .. controls (0.7420,0.8274) and (0.6397,0.7498) .. (0.6397,0.7498) -- (0.5547,0.7616) -- (0.5192,1.2152) -- (0.5803,1.2357) .. controls (0.5904,0.9908) and (0.6218,0.8342) .. (0.6218,0.8342) .. controls (0.7128,0.9191) and (0.7755,0.9596) .. (0.8372,1.0137) .. controls (0.8989,1.0678) and (0.9482,1.1084) .. (0.9898,1.1395) .. controls (1.0314,1.1708) and (1.0653,1.1924) .. (1.0964,1.2086) .. controls (1.1273,1.2247) and (1.1552,1.2353) .. (1.1847,1.2442) .. controls (1.2143,1.2532) and (1.2455,1.2606) .. (1.2831,1.2703) .. controls (1.3206,1.2800) and (1.3644,1.2920) .. (1.4193,1.3104) .. controls (1.4741,1.3288) and (1.5399,1.3534) .. (1.6213,1.3882) .. controls (1.7027,1.4230) and (1.7914,1.4595) .. (1.9088,1.5187) -- cycle; 30 | \end{scope} 31 | 32 | % flowers 33 | \begin{scope}[xshift=1.35cm,yshift=0.95cm] 34 | \foreach \i in {0,51.42857,...,359}{ 35 | \fill[violet!80!white,rotate around={\i:(-0.0865, 0.8219)}] (-0.087, 0.822) .. controls (-0.087, 0.822) and (-0.1635, 0.6638) .. (-0.0818, 0.6653) .. controls (-0.0066, 0.6646) and (-0.087, 0.822) .. (-0.087, 0.822) -- cycle; 36 | } 37 | \end{scope} 38 | \begin{scope}[xshift=1.3cm,yshift=1.1cm] 39 | \foreach \i in {0,51.42857,...,359}{ 40 | \fill[red!80!black,rotate around={\i:(-0.0865, 0.8219)}] (-0.087, 0.822) .. controls (-0.087, 0.822) and (-0.1635, 0.6638) .. (-0.0818, 0.6653) .. controls (-0.0066, 0.6646) and (-0.087, 0.822) .. (-0.087, 0.822) -- cycle; 41 | } 42 | \end{scope} 43 | \begin{scope}[xshift=1.2cm,yshift=1cm] 44 | \foreach \i in {0,51.42857,...,359}{ 45 | \fill[yellow!50!white,rotate around={\i:(-0.0865, 0.8219)}] (-0.087, 0.822) .. controls (-0.087, 0.822) and (-0.1635, 0.6638) .. (-0.0818, 0.6653) .. controls (-0.0066, 0.6646) and (-0.087, 0.822) .. (-0.087, 0.822) -- cycle; 46 | } 47 | \end{scope} 48 | 49 | \end{tikzpicture} 50 | 51 | \end{document} -------------------------------------------------------------------------------- /examples/Frida_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Frida_bg.png -------------------------------------------------------------------------------- /examples/Geisha.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Geisha.pdf -------------------------------------------------------------------------------- /examples/Geisha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Geisha.png -------------------------------------------------------------------------------- /examples/Geisha.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{skin}{RGB}{255,250,222} 6 | \definecolor{darkred}{RGB}{178,34,34} 7 | 8 | \begin{document} 9 | 10 | \begin{tikzpicture} 11 | \duck[ 12 | body=skin, 13 | eye=white, 14 | bill=darkred, 15 | jacket=darkred!50!white 16 | ] 17 | \fill[darkred,overlay] (1.8758,1.3509) .. controls (1.7585,1.2917) and (1.6389,1.2333) .. (1.5575,1.1985) .. controls (1.4761,1.1637) and (1.4103,1.1391) .. (1.3555,1.1208) .. controls (1.3008,1.1024) and (1.2569,1.0904) .. (1.2194,1.0807) .. controls (1.1819,1.0710) and (1.1507,1.0636) .. (1.1212,1.0546) .. controls (1.0916,1.0457) and (1.0637,1.0351) .. (1.0328,1.0190) .. controls (1.0019,1.0029) and (0.8865,0.9088) .. (0.8449,0.8777) .. controls (0.8033,0.8465) and (0.7541,0.8059) .. (0.6925,0.7519) .. controls (0.6516,0.7105) and (0.5560,0.6383) .. (0.5494,0.6329) .. controls (0.5494,0.6329) and (0.5900,0.3688) .. (0.7617,0.0948) -- (0.6763,0.1022) .. controls (0.4163,0.4975) and (0.4362,1.1152) .. (0.4362,1.1152) -- (0.4973,1.1357) .. controls (0.5074,0.8909) and (0.5315,0.7173) .. (0.5315,0.7173) .. controls (0.6224,0.8021) and (0.6851,0.8426) .. (0.7467,0.8967) .. controls (0.8084,0.9507) and (0.8576,0.9913) .. (0.8992,1.0224) .. controls (0.9408,1.0536) and (0.9747,1.0752) .. (1.0057,1.0914) .. controls (1.0366,1.1075) and (1.0645,1.1181) .. (1.0940,1.1270) .. controls (1.1236,1.1360) and (1.1548,1.1434) .. (1.1923,1.1531) .. controls (1.2298,1.1628) and (1.2736,1.1748) .. (1.3284,1.1932) .. controls (1.3832,1.2115) and (1.4490,1.2361) .. (1.5303,1.2709) .. controls (1.6117,1.3057) and (1.7088,1.3507) .. (1.8261,1.4098) -- cycle; 18 | \draw[yellow!50!brown,thick] (1.25,2.1) -- (0.8,2.5); 19 | \fill[black,overlay] (1.3543,1.2009) .. controls (1.7956,2.3034) and (0.3811,2.5095) .. (0.4156,1.6027) .. controls (0.4320,1.8832) and (0.9156,1.9103) .. (0.9156,1.9103) .. controls (0.9889,1.4396) and (1.4358,1.7248) .. (1.3543,1.2009) -- cycle; 20 | \fill[black] (1.15,2.15) circle (0.25); 21 | \draw[yellow!50!brown,thick] (1.25,2.2) -- (1.65,2.45); 22 | \end{tikzpicture} 23 | 24 | \end{document} -------------------------------------------------------------------------------- /examples/Geisha_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Geisha_bg.png -------------------------------------------------------------------------------- /examples/Gert.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Gert.pdf -------------------------------------------------------------------------------- /examples/Gert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Gert.png -------------------------------------------------------------------------------- /examples/Gert.tex: -------------------------------------------------------------------------------- 1 | % contributed by Ulrike Fischer 2 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 3 | \documentclass{standalone} 4 | \usepackage{tikzducks} 5 | 6 | \definecolor{skin}{RGB}{246,230,181} 7 | 8 | \begin{document} 9 | 10 | \begin{tikzpicture} 11 | \duck[ 12 | body=skin, 13 | tshirt=gray!50!white, 14 | jacket=black, 15 | tie=black, 16 | sunglasses=black 17 | ] 18 | \end{tikzpicture} 19 | 20 | \end{document} -------------------------------------------------------------------------------- /examples/Gert_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Gert_bg.png -------------------------------------------------------------------------------- /examples/Ghost.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ghost.pdf -------------------------------------------------------------------------------- /examples/Ghost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ghost.png -------------------------------------------------------------------------------- /examples/Ghost.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \colorlet{ghost}{white!98!gray} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture} 10 | \duck[ 11 | body=ghost, 12 | bill=ghost, 13 | prison=gray 14 | ] 15 | \fill[ghost,rotate=-17](-0.1,0.7) rectangle (0.15,1.3); 16 | \fill[ghost,rotate=17] (1.6,0.7) rectangle (1.81,1.3); 17 | \end{tikzpicture} 18 | 19 | \end{document} -------------------------------------------------------------------------------- /examples/Ghost_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ghost_bg.png -------------------------------------------------------------------------------- /examples/GirlWithPearlEarring.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/GirlWithPearlEarring.pdf -------------------------------------------------------------------------------- /examples/GirlWithPearlEarring.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/GirlWithPearlEarring.png -------------------------------------------------------------------------------- /examples/GirlWithPearlEarring.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{skin}{RGB}{255,209,181} 6 | \definecolor{lblue}{RGB}{176,172,188} 7 | \definecolor{lbrown}{RGB}{236,213,163} 8 | \definecolor{dbrown}{RGB}{176,134,95} 9 | \definecolor{billcol}{RGB}{230,132,82} 10 | 11 | \begin{document} 12 | 13 | \begin{tikzpicture} 14 | 15 | \fill[black] (-0.1,0.4) rectangle (1.9,2.8); 16 | 17 | \clip (-0.1,0.4) rectangle (1.9,2.8); 18 | 19 | 20 | \duck[ 21 | body=skin, 22 | jacket=dbrown!10!white, 23 | bill=billcol 24 | ] 25 | 26 | \fill[dbrown] (0.490,1.145) .. controls (0.267, 1.102) and (-0.125,0.657) .. (0.289,0.261) .. controls (0.704,-0.135) and ( 2.863,0.130) .. (1.818,1.419) .. controls (0.880, 0.946) and ( 1.240,1.378) .. (0.46,0.55) -- cycle; 27 | 28 | \begin{scope}[scale=0.12,xshift=-1.3cm,yshift=3.8cm] 29 | \fill[lbrown] (7.7941,13.7509) .. controls (10.8320,13.4186) and (11.7764,12.3930) .. (12.6964,10.9465) .. controls (12.6964,10.9465) and (12.6769,5.6002) .. (12.9122,2.0156) .. controls (13.2041,1.7780) and (13.7523,1.8952) .. (14.0339,2.1451) .. controls (14.2660,2.3512) and (13.9970,2.8707) .. (14.2496,3.0512) .. controls (14.6140,3.3115) and (15.1783,2.7387) .. (15.5871,2.9217) .. controls (15.8312,3.0309) and (16.0169,3.3052) .. (16.0616,3.5688) .. controls (16.0616,3.5688) and (14.7664,8.8740) .. (13.1278,13.5783) .. controls (11.9515,15.3829) and (8.6715,16.0161) .. (7.7941,13.7509) -- cycle; 30 | \fill[lblue] (4.9884,10.6533) .. controls (7.4488,14.0291) and (12.6964,7.7969) .. (12.6964,7.7969) .. controls (13.4861,7.8582) and (13.1708,10.7423) .. (12.8259,11.2053) .. controls (10.9927,13.8335) and (9.2448,13.7940) .. (9.2448,13.7940) .. controls (6.4433,14.0475) and (4.8380,11.8428) .. (4.9884,10.6533) -- cycle; 31 | \end{scope} 32 | 33 | \fill[gray!80!white] (1.24,1.35) circle[radius=0.06]; 34 | \fill[white] (1.225,1.365) ellipse[x radius=0.015, y radius=0.03,rotate=-30]; 35 | \end{tikzpicture} 36 | 37 | \end{document} -------------------------------------------------------------------------------- /examples/GirlWithPearlEarring_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/GirlWithPearlEarring_bg.png -------------------------------------------------------------------------------- /examples/GreatWall.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/GreatWall.pdf -------------------------------------------------------------------------------- /examples/GreatWall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/GreatWall.png -------------------------------------------------------------------------------- /examples/GreatWall.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{beamer} 3 | 4 | \usepackage{tikz} 5 | \usepackage{tikzlings} 6 | \usepackage{tikzducks} 7 | \usepackage{xurl} 8 | \usepackage{fontawesome5} 9 | \setbeamertemplate{navigation symbols}{} 10 | \usetikzlibrary{shapes} 11 | \definecolor{skin}{RGB}{255,250,222} 12 | \definecolor{darkred}{RGB}{178,34,34} 13 | 14 | \begin{document} 15 | 16 | \begin{frame} 17 | \begin{tikzpicture}[remember picture,overlay] 18 | \node[at=(current page.south),anchor=south,inner sep=0pt]{% 19 | \includegraphics[width=\paperwidth]{Great_Wall_of_China}% 20 | }; 21 | \node[at=(current page.south),yshift=0.25cm,text width=.95\paperwidth,align=center]{ 22 | \tiny\color{white} 23 | Image source: \url{https://commons.wikimedia.org/wiki/File:Great_Wall_of_China_(IV)_(7183821643).jpg}\par 24 | }; 25 | \begin{scope}[scale=1.4,xscale=-1,xshift=-3cm,yshift=-2cm] 26 | \duck[ 27 | body=skin, 28 | eye=white, 29 | bill=darkred, 30 | jacket=darkred!50!white 31 | ] 32 | \fill[darkred] (1.8758,1.3509) .. controls (1.7585,1.2917) and (1.6389,1.2333) .. (1.5575,1.1985) .. controls (1.4761,1.1637) and (1.4103,1.1391) .. (1.3555,1.1208) .. controls (1.3008,1.1024) and (1.2569,1.0904) .. (1.2194,1.0807) .. controls (1.1819,1.0710) and (1.1507,1.0636) .. (1.1212,1.0546) .. controls (1.0916,1.0457) and (1.0637,1.0351) .. (1.0328,1.0190) .. controls (1.0019,1.0029) and (0.8865,0.9088) .. (0.8449,0.8777) .. controls (0.8033,0.8465) and (0.7541,0.8059) .. (0.6925,0.7519) .. controls (0.6516,0.7105) and (0.5560,0.6383) .. (0.5494,0.6329) .. controls (0.5494,0.6329) and (0.5900,0.3688) .. (0.7617,0.0948) -- (0.6763,0.1022) .. controls (0.4163,0.4975) and (0.4362,1.1152) .. (0.4362,1.1152) -- (0.4973,1.1357) .. controls (0.5074,0.8909) and (0.5315,0.7173) .. (0.5315,0.7173) .. controls (0.6224,0.8021) and (0.6851,0.8426) .. (0.7467,0.8967) .. controls (0.8084,0.9507) and (0.8576,0.9913) .. (0.8992,1.0224) .. controls (0.9408,1.0536) and (0.9747,1.0752) .. (1.0057,1.0914) .. controls (1.0366,1.1075) and (1.0645,1.1181) .. (1.0940,1.1270) .. controls (1.1236,1.1360) and (1.1548,1.1434) .. (1.1923,1.1531) .. controls (1.2298,1.1628) and (1.2736,1.1748) .. (1.3284,1.1932) .. controls (1.3832,1.2115) and (1.4490,1.2361) .. (1.5303,1.2709) .. controls (1.6117,1.3057) and (1.7088,1.3507) .. (1.8261,1.4098) -- cycle; 33 | \draw[yellow!50!brown,thick] (1.25,2.1) -- (0.8,2.5); 34 | \fill[black] (1.3543,1.2009) .. controls (1.7956,2.3034) and (0.3811,2.5095) .. (0.4156,1.6027) .. controls (0.4320,1.8832) and (0.9156,1.9103) .. (0.9156,1.9103) .. controls (0.9889,1.4396) and (1.4358,1.7248) .. (1.3543,1.2009) -- cycle; 35 | \fill[black] (1.15,2.15) circle (0.25); 36 | \draw[yellow!50!brown,thick] (1.25,2.2) -- (1.65,2.45); 37 | \end{scope} 38 | \end{tikzpicture} 39 | \end{frame} 40 | 41 | \end{document} -------------------------------------------------------------------------------- /examples/GreatWall_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/GreatWall_bg.png -------------------------------------------------------------------------------- /examples/Harlequin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Harlequin.pdf -------------------------------------------------------------------------------- /examples/Harlequin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Harlequin.png -------------------------------------------------------------------------------- /examples/Harlequin.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | 4 | \usepackage{tikzducks} 5 | 6 | \begin{document} 7 | 8 | \begin{tikzpicture} 9 | \duck[ 10 | harlequin, 11 | jacket=red, 12 | stripes={\stripes[color=blue, width=0.46, distance=3]} 13 | ] 14 | \end{tikzpicture} 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /examples/Harlequin_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Harlequin_bg.png -------------------------------------------------------------------------------- /examples/Hilbert.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Hilbert.pdf -------------------------------------------------------------------------------- /examples/Hilbert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Hilbert.png -------------------------------------------------------------------------------- /examples/Hilbert.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[glasses, 9 | bookcolour=black!60!brown, 10 | book={ 11 | \scalebox{0.14}{ 12 | \parbox{2.5cm}{ 13 | \sffamily 14 | \centering 15 | \footnotesize 16 | Wir m\"ussen wissen.\\ 17 | Wir werden wissen.\\[0.4cm] 18 | $1+1=2$}}}, 19 | strawhat 20 | ] 21 | \end{tikzpicture} 22 | 23 | \end{document} -------------------------------------------------------------------------------- /examples/Hilbert_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Hilbert_bg.png -------------------------------------------------------------------------------- /examples/Horse.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Horse.pdf -------------------------------------------------------------------------------- /examples/Horse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Horse.png -------------------------------------------------------------------------------- /examples/Horse.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | 9 | \path (0.1,0.1) rectangle (2.7,2.4); 10 | \begin{pgfinterruptboundingbox} 11 | 12 | \begin{scope}[yshift=-6] 13 | \clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4); 14 | \fill[brown,rotate=-5](0.28,2.26)ellipse (0.3 and 0.4); 15 | \end{scope} 16 | \duck[ 17 | body=brown, 18 | mohican=brown!50!black, 19 | horsetail 20 | ] 21 | \begin{scope}[yshift=-5,xshift=1] 22 | \clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4); 23 | \fill[brown,rotate=-5](1.06,2.2) ellipse (0.3 and 0.4); 24 | \end{scope} 25 | 26 | \end{pgfinterruptboundingbox} 27 | 28 | \end{tikzpicture} 29 | 30 | \end{document} -------------------------------------------------------------------------------- /examples/Horse_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Horse_bg.png -------------------------------------------------------------------------------- /examples/Icon.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Icon.pdf -------------------------------------------------------------------------------- /examples/Icon.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = txs:///arara | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | % arara: latexmk: { 3 | % arara: --> engine: pdflatex, 4 | % arara: --> } 5 | % arara: pdftocairo: { 6 | % arara: --> format: 'png', 7 | % arara: --> options: ['-r', '150', '-transp', '-singlefile'], 8 | % arara: --> output: 'ICON' 9 | % arara: --> } 10 | % arara: clean: { extensions: [ aux, fdb_latexmk, fls, log, synctex.gz ] } 11 | % arara: move: { files: [ 'ICON.png' ], target: '../ICON.png' } 12 | 13 | \documentclass[border=1mm]{standalone} 14 | 15 | \usepackage{tikzducks} 16 | 17 | \begin{document} 18 | 19 | \begin{tikzpicture} 20 | \shade[right color=gray,left color=gray!30,shading angle=45] (0,1.15) circle [radius=1.2cm]; 21 | \begin{scope}[xshift=-1.05cm,yshift=0.1cm] 22 | \duck 23 | \end{scope} 24 | \end{tikzpicture} 25 | 26 | \end{document} 27 | -------------------------------------------------------------------------------- /examples/Jailbird.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Jailbird.pdf -------------------------------------------------------------------------------- /examples/Jailbird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Jailbird.png -------------------------------------------------------------------------------- /examples/Jailbird.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | peakedcap=gray!40!black, 10 | tshirt=white, 11 | stripes={\stripes[rotate=100,color=gray!40!black]}, 12 | prison=gray 13 | ] 14 | \end{tikzpicture} 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /examples/Jailbird_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Jailbird_bg.png -------------------------------------------------------------------------------- /examples/JamesDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/JamesDuck.pdf -------------------------------------------------------------------------------- /examples/JamesDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/JamesDuck.png -------------------------------------------------------------------------------- /examples/JamesDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{skin}{RGB}{255,225,180} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[xscale=-1] 10 | \duck[ 11 | body=skin, 12 | tshirt, 13 | lapel, 14 | jacket=gray!50!black, 15 | cocktail, 16 | buttons, 17 | bowtie, 18 | parting=brown!35!black 19 | ] 20 | \end{tikzpicture} 21 | \begin{tikzpicture} 22 | \duck[ 23 | body=skin, 24 | recedinghair=white!60!skin, 25 | eyebrow, 26 | jacket=green!20!brown!40!gray!80!black, 27 | tshirt=yellow!20!white, 28 | tie=red!60!black, 29 | book={\scalebox{0.35}{\tiny Explosives}} 30 | ] 31 | \end{tikzpicture} 32 | 33 | \end{document} -------------------------------------------------------------------------------- /examples/JamesDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/JamesDuck_bg.png -------------------------------------------------------------------------------- /examples/KingQuackIII.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/KingQuackIII.pdf -------------------------------------------------------------------------------- /examples/KingQuackIII.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/KingQuackIII.png -------------------------------------------------------------------------------- /examples/KingQuackIII_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/KingQuackIII_bg.png -------------------------------------------------------------------------------- /examples/Knight.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Knight.pdf -------------------------------------------------------------------------------- /examples/Knight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Knight.png -------------------------------------------------------------------------------- /examples/Knight.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[helmet] 9 | \fill[gray!60!black] (0.5831,0.5821) -- (0.8112,0.6468) -- (0.7528,0.7563) .. controls (0.7367,0.7865) and (0.8427,0.8231) .. (0.8497,0.7897) -- (0.8749,0.6705) -- (0.9316,0.5183) -- (0.9744,0.4102) .. controls (0.9865,0.3796) and (0.8848,0.3549) .. (0.8784,0.3872) -- (0.8553,0.5051) -- (0.6311,0.4379) -- (0.6541,0.3774) .. controls (0.6619,0.3569) and (0.6051,0.3422) .. (0.5908,0.3589) .. controls (0.5908,0.3589) and (0.5068,0.4303) .. (0.4875,0.4797) .. controls (0.4692,0.5265) and (0.4818,0.6305) .. (0.4818,0.6305) .. controls (0.4809,0.6553) and (0.5387,0.6862) .. (0.5484,0.6634) -- cycle; 10 | \fill[gray] (0.8749,0.6705) -- (1.6884,0.9465) -- (1.9041,0.8933) -- (1.7728,0.7282) -- (0.9316,0.5183) -- cycle; 11 | \end{tikzpicture} 12 | 13 | \end{document} -------------------------------------------------------------------------------- /examples/Knight_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Knight_bg.png -------------------------------------------------------------------------------- /examples/Knuth.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Knuth.pdf -------------------------------------------------------------------------------- /examples/Knuth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Knuth.png -------------------------------------------------------------------------------- /examples/Knuth.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | body=yellow!50!red!20!white, 10 | recedinghair=gray!50!white, 11 | eyebrow, 12 | tshirt=white!93!black, 13 | jacket=red!50!black, 14 | glasses=brown!70!lightgray, 15 | book=\scalebox{0.5}{\TeX}, 16 | bookcolour=black!20!brown 17 | ] 18 | \end{tikzpicture} 19 | 20 | \end{document} -------------------------------------------------------------------------------- /examples/Knuth_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Knuth_bg.png -------------------------------------------------------------------------------- /examples/Leonardo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Leonardo.pdf -------------------------------------------------------------------------------- /examples/Leonardo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Leonardo.png -------------------------------------------------------------------------------- /examples/Leonardo_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Leonardo_bg.png -------------------------------------------------------------------------------- /examples/Manooooh.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Manooooh.pdf -------------------------------------------------------------------------------- /examples/Manooooh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Manooooh.png -------------------------------------------------------------------------------- /examples/Manooooh.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{argentinien}{RGB}{116,172,223} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture} 10 | \duck[ 11 | tshirt=argentinien, 12 | stripes={\stripes[ 13 | rotate=-90, 14 | width=0.6, 15 | distance=1.1, 16 | initialx=1.1, 17 | color=white, 18 | emblem={\includegraphics[width=0.3cm]{Argentina_sun}} 19 | ]} 20 | ] 21 | \end{tikzpicture} 22 | 23 | \end{document} -------------------------------------------------------------------------------- /examples/Manooooh_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Manooooh_bg.png -------------------------------------------------------------------------------- /examples/MaryDuckings.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MaryDuckings.pdf -------------------------------------------------------------------------------- /examples/MaryDuckings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MaryDuckings.png -------------------------------------------------------------------------------- /examples/MaryDuckings.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | 3 | % Based on an idea by Paulo 4 | \documentclass{standalone} 5 | \usepackage{tikzducks} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture} 10 | \duck[ 11 | tshirt, 12 | bowtie=red!70!black, 13 | jacket=blue!50!black, 14 | umbrellaclosed=cyan!50!green, 15 | longhair=brown!60!black, 16 | hat=black 17 | ] 18 | \end{tikzpicture} 19 | 20 | \end{document} -------------------------------------------------------------------------------- /examples/MaryDuckings_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MaryDuckings_bg.png -------------------------------------------------------------------------------- /examples/MayTheQuackBeWithYou.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MayTheQuackBeWithYou.pdf -------------------------------------------------------------------------------- /examples/MayTheQuackBeWithYou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MayTheQuackBeWithYou.png -------------------------------------------------------------------------------- /examples/MayTheQuackBeWithYou.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \colorlet{skin}{white!45!gray!80!green} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}% 10 | \duck[ 11 | lightsaber, 12 | body=skin, 13 | bill=gray!80!green, 14 | tshirt=brown!50!black, 15 | jacket=brown!30!gray 16 | ] 17 | \fill[skin,rounded corners=3] (0.44,1.70) -- (0.25,2) -- (0.6,1.95); 18 | \fill[skin,rounded corners=3] (1.34,1.60) -- (1.53,1.9) -- (1.16,1.85); 19 | \end{tikzpicture}% 20 | % 21 | \begin{tikzpicture}% 22 | \duck[ 23 | grumpy, 24 | lightsaber=red, 25 | cape=black!85!white, 26 | body=black!70!white, 27 | darthvader=black!85!white 28 | ] 29 | \end{tikzpicture}% 30 | % 31 | \begin{tikzpicture}% 32 | \fill[brown!70!black] (0.5,1.65) circle (0.25); 33 | \duck[ 34 | jacket=white!95!brown, 35 | body=brown!50!white, 36 | shorthair=brown!70!black, 37 | lightsaber=cyan 38 | ] 39 | \fill[brown!70!black] (1.3,1.6) circle (0.25); 40 | \end{tikzpicture}% 41 | 42 | \end{document} -------------------------------------------------------------------------------- /examples/MayTheQuackBeWithYou_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MayTheQuackBeWithYou_bg.png -------------------------------------------------------------------------------- /examples/MonaDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MonaDuck.pdf -------------------------------------------------------------------------------- /examples/MonaDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MonaDuck.png -------------------------------------------------------------------------------- /examples/MonaDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{skin}{RGB}{223,194,110} 6 | \definecolor{haircol}{RGB}{71,47,24} 7 | \definecolor{billcol}{RGB}{199,128,56} 8 | \definecolor{jacketcol}{RGB}{91,67,35} 9 | \definecolor{shirtcol}{RGB}{144,106,55} 10 | 11 | \newcommand{\duckhookbody}{ 12 | \begin{scope}[scale=0.128,xshift=0.3cm] 13 | \fill[shirtcol] (2.3052,7.2660) .. controls (-1.2412,0.5419) and (6.7402,1.8426) .. (7.1136,5.7103) -- cycle; 14 | \fill[jacketcol] (3.5921,8.9038) .. controls (1.7395,8.5466) and (-1.5171,4.8497) .. (1.9223,1.5599) .. controls (2.1377,1.3543) and (2.4086,1.1697) .. (2.7251,1.0068) .. controls (3.0415,0.8440) and (3.4036,0.7029) .. (3.8013,0.5845) .. controls (4.1991,0.4660) and (4.6325,0.3702) .. (5.0916,0.2977) .. controls (5.5507,0.2251) and (6.0357,0.1761) .. (6.5365,0.1511) .. controls (7.0374,0.1261) and (7.5540,0.1253) .. (8.0768,0.1494) .. controls (8.5994,0.1736) and (9.1280,0.2227) .. (9.6528,0.2975) .. controls (10.1777,0.3724) and (10.6985,0.4731) .. (11.2055,0.6002) .. controls (11.7127,0.7275) and (12.2059,0.8811) .. (12.6755,1.0621) .. controls (13.1451,1.2432) and (13.9419,1.4517) .. (14.3542,1.6882) -- (14.3319,11.4) .. controls (6.5396,7.1336) and (4.0771,5.6374) .. (2.1453,2.7501) .. controls (2.6116,6.2388) and (3.5921,8.9038) .. (3.5921,8.9038) -- cycle; 15 | \end{scope} 16 | } 17 | 18 | \begin{document} 19 | 20 | \begin{tikzpicture}[inner sep=0pt] 21 | 22 | \clip (0.08,0.08) rectangle (1.78,2.6); 23 | 24 | \node at (0.93,1.35) {\includegraphics[width=1.7cm]{MonaLisa}}; 25 | 26 | \duck[ 27 | longhair=haircol, 28 | body=skin, 29 | bill=billcol 30 | ] 31 | 32 | \end{tikzpicture} 33 | 34 | \end{document} -------------------------------------------------------------------------------- /examples/MonaDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/MonaDuck_bg.png -------------------------------------------------------------------------------- /examples/Ninja.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ninja.pdf -------------------------------------------------------------------------------- /examples/Ninja.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ninja.png -------------------------------------------------------------------------------- /examples/Ninja.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | 4 | \usepackage{tikzducks} 5 | 6 | \colorlet{dark}{black!75!white} 7 | \colorlet{light}{yellow!70!brown!50!white} 8 | \colorlet{accent}{orange!50!brown} 9 | 10 | % Turm %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11 | \newcommand{\turm}[1]{% 12 | \begin{scope}[scale=0.38] 13 | \duck[body=#1,bill=accent,mask=maskcolor] 14 | \end{scope} 15 | \path[fill=gray,yshift=-45,xshift=-8] (0.0959,0.1866) .. controls (0.0908,0.2574) and (0.0900,0.3748) .. (0.1928,0.3609) .. controls (0.2295,0.3527) and (0.2359,0.3750) .. (0.2326,0.4070) .. controls (0.2337,0.4816) and (0.2438,0.5571) .. (0.2849,0.6214) .. controls (0.3553,0.7835) and (0.3522,0.9650) .. (0.3641,1.1382) .. controls (0.3678,1.2187) and (0.3676,1.2993) .. (0.3675,1.3799) .. controls (0.3183,1.3832) and (0.2443,1.3768) .. (0.2356,1.4412) .. controls (0.2297,1.6004) and (0.2294,1.7604) .. (0.2367,1.9196) .. controls (0.2988,1.9217) and (0.3843,1.9393) .. (0.4339,1.9106) .. controls (0.4300,1.8436) and (0.4255,1.7539) .. (0.5208,1.7857) .. controls (0.5477,1.7857) and (0.5820,1.7785) .. (0.5698,1.8176) .. controls (0.5717,1.8659) and (0.5553,1.9453) .. (0.6308,1.9238) .. controls (0.7009,1.9243) and (0.7710,1.9230) .. (0.8411,1.9226) .. controls (0.8425,1.8787) and (0.8439,1.8348) .. (0.8453,1.7909) .. controls (0.8892,1.7909) and (0.9331,1.7909) .. (0.9770,1.7909) .. controls (0.9784,1.8348) and (0.9798,1.8787) .. (0.9812,1.9226) .. controls (1.0478,1.9226) and (1.1143,1.9226) .. (1.1809,1.9226) .. controls (1.1794,1.7563) and (1.1845,1.5897) .. (1.1771,1.4236) .. controls (1.1574,1.3706) and (1.0943,1.3835) .. (1.0492,1.3790) .. controls (1.0532,1.1475) and (1.0506,0.9124) .. (1.1071,0.6864) .. controls (1.1310,0.6073) and (1.1880,0.5375) .. (1.1819,0.4508) .. controls (1.1864,0.4236) and (1.1780,0.3839) .. (1.1895,0.3637) .. controls (1.2346,0.3602) and (1.3001,0.3702) .. (1.3145,0.3141) .. controls (1.3197,0.2396) and (1.3177,0.1647) .. (1.3193,0.0900) .. controls (0.9114,0.0900) and (0.5036,0.0900) .. (0.0957,0.0900) .. controls (0.0958,0.1222) and (0.0959,0.1544) .. (0.0959,0.1866) -- cycle; 16 | } 17 | 18 | \begin{document} 19 | 20 | \colorlet{maskcolor}{light} 21 | 22 | \begin{tikzpicture}[xscale=-1] 23 | \turm{dark} 24 | \end{tikzpicture} 25 | 26 | \colorlet{maskcolor}{dark} 27 | 28 | \begin{tikzpicture} 29 | \turm{light} 30 | \end{tikzpicture} 31 | 32 | \end{document} -------------------------------------------------------------------------------- /examples/Ninja_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ninja_bg.png -------------------------------------------------------------------------------- /examples/OfficeDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/OfficeDuck.pdf -------------------------------------------------------------------------------- /examples/OfficeDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/OfficeDuck.png -------------------------------------------------------------------------------- /examples/OfficeDuck.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /examples/OfficeDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[tshirt=lightgray, 9 | jacket=blue!50!black, 10 | tie=blue!80!black, 11 | shorthair] 12 | \end{tikzpicture} 13 | 14 | \end{document} -------------------------------------------------------------------------------- /examples/OfficeDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/OfficeDuck_bg.png -------------------------------------------------------------------------------- /examples/Pacduck.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pacduck.gif -------------------------------------------------------------------------------- /examples/Pacduck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pacduck.pdf -------------------------------------------------------------------------------- /examples/Pacduck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = txs:///arara 2 | % arara: latexmk: { 3 | % arara: --> engine: pdflatex, 4 | % arara: --> options: [ 5 | % arara: --> '-pretex="\\AtBeginDocument{\\pagecolor{gray!20}}"', 6 | % arara: --> '-usepretex' 7 | % arara: --> ] 8 | % arara: --> } 9 | % arara: pdftocairo: { 10 | % arara: --> format: 'png', 11 | % arara: --> options: [ 12 | % arara: --> '-r', '150', '-transp', '-singlefile', '-f', '15', 13 | % arara: --> '@{getBasename(getOriginalReference())}_bg' 14 | % arara: --> ] 15 | % arara: --> } 16 | % arara: latexmk: { 17 | % arara: --> engine: pdflatex, 18 | % arara: --> } 19 | % arara: convert: { options: [ '-delay', '10', '-loop', '0', 20 | % arara: --> '-density', '100', '-alpha', 'remove', 21 | % arara: --> '@{getBasename(getOriginalReference())}.pdf', 22 | % arara: --> '@{getBasename(getOriginalReference())}.gif' ] } 23 | % arara: clean: { extensions: [ aux, log, fdb_latexmk, fls, synctex.gz, nav, out, snm, toc ] } 24 | 25 | %modified from https://tex.stackexchange.com/a/429006/36296 26 | \documentclass[tikz]{standalone} 27 | 28 | \usepackage{xcolor-material} 29 | \usepackage{tikzducks} 30 | 31 | \usetikzlibrary{ducks} 32 | 33 | % from https://tex.stackexchange.com/questions/413389/how-to-make-a-simple-drawing-of-an-apple-using-only-the-tikz-library 34 | \usetikzlibrary{fit} 35 | \tikzset{% 36 | apple/.pic={ 37 | \fill [MaterialBrown] (-1/8,0) 38 | arc (180:120:1 and 3/2) coordinate [pos=3/5] (@)-- ++(1/6,-1/7) 39 | arc (120:180:5/4 and 3/2) -- cycle; 40 | \fill [MaterialLightGreen500] (0,-9/10) 41 | .. controls ++(180:1/8) and ++( 0:1/4) .. (-1/3, -1) 42 | .. controls ++(180:1/3) and ++(270:1/2) .. ( -1, 0) 43 | .. controls ++( 90:1/3) and ++(180:1/3) .. (-1/2, 3/4) 44 | .. controls ++( 0:1/8) and ++(135:1/8) .. ( 0, 4/7) 45 | .. controls ++( 45:1/8) and ++(180:1/8) .. ( 1/2, 3/4) 46 | .. controls ++( 0:1/3) and ++( 90:1/3) .. ( 1, 0) 47 | .. controls ++(270:1/2) and ++( 0:1/3) .. ( 1/3, -1) 48 | .. controls ++(180:1/4) and ++( 0:1/8) .. cycle; 49 | \fill [MaterialLightGreen600] (0, 4/7) 50 | .. controls ++( 45:1/8) and ++(180:1/8) .. ( 1/2, 3/4) 51 | .. controls ++( 0:1/3) and ++( 90:1/3) .. ( 1, 0) 52 | .. controls ++(270:1/2) and ++( 0:1/3) .. ( 1/3, -1) 53 | .. controls ++(180:1/4) and ++( 0:1/8) .. ( 0,-9/10); 54 | \fill [MaterialGreen500, shift={(@)}, rotate=-30] 55 | (0,0) arc (45:135:3/4 and 3/5) arc (225:315:3/4 and 3/5); 56 | \fill [MaterialGreen700, shift={(@)}, rotate=-30] 57 | (0,0) arc (315:225:3/4 and 3/5) -- cycle; 58 | }, 59 | cherry/.pic={ 60 | \foreach \i in {1,2}{ 61 | \tikzset{shift={(-1+\i*3/4, -3/5+\i/5)},scale=1/2, rotate=15-\i*10} 62 | \fill [MaterialRed700] (0,19/20) 63 | .. controls ++(180:1/8) and ++( 0:1/4) .. (-1/3, 1) 64 | .. controls ++(180:1/3) and ++( 90:1/2) .. ( -1, 0) 65 | .. controls ++(270:1/2) and ++(180:1/2) .. ( 0, -1) 66 | .. controls ++( 0:1/2) and ++(270:1/2) .. ( 1, 0) 67 | .. controls ++( 90:1/2) and ++( 0:1/3) .. ( 1/3, 1) 68 | .. controls ++(180:1/4) and ++( 0:1/8) .. cycle; 69 | \fill [MaterialRed800] (0, -1) 70 | .. controls ++( 0:1/2) and ++(270:1/2) .. ( 1, 0) 71 | .. controls ++( 90:1/2) and ++( 0:1/3) .. ( 1/3, 1) 72 | .. controls ++(180:1/4) and ++( 0:1/8) .. ( 0,19/20) -- cycle; 73 | \fill [MaterialRed900] (0,3/4) coordinate (@\i) 74 | ellipse [x radius=1/4, y radius=1/8]; 75 | } 76 | \fill [MaterialBrown] 77 | (1/4,11/8) -- (3/8,11/8) coordinate (@) 78 | .. controls ++(270:1/2) and ++(135:1/3) .. (@1) 79 | .. controls ++(135:1/2) and ++(270:1/2) .. cycle; 80 | \fill [MaterialBrown] 81 | (1/4,11/8) -- (3/8,11/8) 82 | .. controls ++(315:1/2) and ++(45:1/2) .. (@2) 83 | .. controls ++(60:1/2) and ++(315:1/2) .. cycle; 84 | \fill [MaterialGreen500, shift={(@)}, rotate=20] 85 | (0,0) arc (45:135:3/4 and 3/5) arc (225:315:3/4 and 3/5); 86 | \fill [MaterialGreen700, shift={(@)}, rotate=20] 87 | (0,0) arc (315:225:3/4 and 3/5) -- cycle; 88 | }} 89 | 90 | \newcount\nframes 91 | \nframes=80 92 | 93 | \begin{document} 94 | 95 | \foreach \n in {0,...,\nframes}{ 96 | 97 | \begin{tikzpicture} 98 | \pgfmathsetmacro{\x}{10.0 * \n / \nframes} 99 | \pgfmathsetmacro{\bill}{int Mod(\n,5)} 100 | \pgfmathsetmacro{\angle}{5 + 25 * abs(sin(3 * 360 * (\n / \nframes)))} 101 | \clip (-1, -1.2) rectangle (10, 1.2); 102 | 103 | % food 104 | \begin{scope} 105 | \clip (\x, -1.2)++(-1,0) rectangle (10, 1.2); 106 | \foreach \i in {0,...,10} { 107 | 108 | \ifnum\i=2 109 | \draw[fill = yellow,xscale=-1] (-2,0) -- ++ (45:0.2cm) arc (45:360-45:0.2cm) -- cycle; 110 | \fill (2,0.1) circle (0.2mm); 111 | \else 112 | \ifnum\i=5 113 | \path (8, 0) pic[scale = 0.4] {apple}; 114 | \else 115 | \ifnum\i=8 116 | \path (5, 0) pic[scale = 0.4] {cherry}; 117 | \else 118 | \fill[gray, opacity = 0.3] (\i, 0) circle (0.2); 119 | \fi \fi \fi 120 | } 121 | \end{scope} 122 | 123 | % pacman 124 | \begin{scope}[yshift=-30,xscale=-1,xshift = -\x cm] 125 | \ifnum\bill<4 126 | \duck 127 | \else 128 | \duck[laughing] 129 | \fi 130 | \end{scope} 131 | 132 | \end{tikzpicture} 133 | } 134 | \end{document} 135 | -------------------------------------------------------------------------------- /examples/Pacduck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pacduck_bg.png -------------------------------------------------------------------------------- /examples/PartyDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PartyDuck.pdf -------------------------------------------------------------------------------- /examples/PartyDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PartyDuck.png -------------------------------------------------------------------------------- /examples/PartyDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | cake=violet, 10 | magichat=violet, 11 | magicstars=white!85!yellow 12 | ] 13 | \end{tikzpicture} 14 | 15 | \end{document} -------------------------------------------------------------------------------- /examples/PartyDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PartyDuck_bg.png -------------------------------------------------------------------------------- /examples/PaulinoVanDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PaulinoVanDuck.pdf -------------------------------------------------------------------------------- /examples/PaulinoVanDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PaulinoVanDuck.png -------------------------------------------------------------------------------- /examples/PaulinoVanDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | body=yellow!50!brown!40!white, 10 | crazyhair=gray!50!white, 11 | eyebrow, 12 | glasses=brown!70!black, 13 | book=\scalebox{0.2}{$E=mc^2$}, 14 | bookcolour=red!20!brown 15 | ] 16 | \end{tikzpicture} 17 | 18 | \end{document} -------------------------------------------------------------------------------- /examples/PaulinoVanDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PaulinoVanDuck_bg.png -------------------------------------------------------------------------------- /examples/Paulo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Paulo.pdf -------------------------------------------------------------------------------- /examples/Paulo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Paulo.png -------------------------------------------------------------------------------- /examples/Paulo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/Paulo.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | cap, 10 | cricket 11 | ] 12 | \end{tikzpicture} 13 | 14 | \end{document} -------------------------------------------------------------------------------- /examples/Paulo_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Paulo_bg.png -------------------------------------------------------------------------------- /examples/Peppone.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Peppone.pdf -------------------------------------------------------------------------------- /examples/Peppone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Peppone.png -------------------------------------------------------------------------------- /examples/Peppone.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture}[xscale=-1] 8 | \selectcolormodel{gray} 9 | \duck[ 10 | tshirt=white, 11 | jacket=brown!50!black, 12 | buttons=gray, 13 | hat=brown!50!black, 14 | tie=brown, 15 | stripes={\stripes[rotate=0,width=0.02,color=gray,distance=0.1]} 16 | ] 17 | \begin{scope}[xshift=62,yshift=1,xscale=-1] 18 | \fill[gray!50!black] (1.8158,1.4731) .. controls (1.5890,1.5312) and (1.5142,1.3598) .. (1.2808,1.3608) .. controls (1.1720,1.2048) and (1.9376,1.4368) .. (1.8158,1.4731) -- cycle; 19 | \end{scope} 20 | \end{tikzpicture} 21 | 22 | \begin{tikzpicture} 23 | \selectcolormodel{gray} 24 | \duck[ 25 | tshirt=black, 26 | buttons=gray, 27 | laughing 28 | ] 29 | \fill[black, start angle=0, end angle=150, radius=0.5] (1.4,1.75) arc; 30 | \fill[black,rotate=-15] (0.44,2.1) ellipse (0.6 and 0.1); 31 | \fill[white,rotate=-12] (0.32,1.) rectangle (0.43,1.15); 32 | \end{tikzpicture} 33 | 34 | \end{document} -------------------------------------------------------------------------------- /examples/Peppone_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Peppone_bg.png -------------------------------------------------------------------------------- /examples/Phantom.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Phantom.pdf -------------------------------------------------------------------------------- /examples/Phantom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Phantom.png -------------------------------------------------------------------------------- /examples/Phantom.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{skin}{RGB}{212,183,145} 6 | \definecolor{tshirtcol}{RGB}{250,191,173} 7 | \definecolor{jacketcol}{RGB}{69,69,69} 8 | \definecolor{billcol}{RGB}{211,136,44} 9 | 10 | 11 | \begin{document} 12 | 13 | \begin{tikzpicture} 14 | 15 | \newcommand{\duckhookbody}{ 16 | \begin{scope}[scale=0.4,xshift=0.2cm,yshift=0.2cm] 17 | \fill[lightgray] (2.2193,4.6237) .. controls (1.3412,5.2280) and (0.8244,4.4045) .. (0.8244,3.5585) .. controls (0.8244,2.7125) and (1.1478,2.4867) .. (1.1478,2.4867) .. controls (2.8529,3.0021) and (0.2799,3.3673) .. (2.2193,4.6237) -- cycle; 18 | \end{scope} 19 | } 20 | 21 | \duck[ 22 | body=skin, 23 | bill=billcol, 24 | tshirt=white, 25 | jacket=jacketcol, 26 | bowtie=black, 27 | buttons=black, 28 | lapel=black, 29 | strawhat=jacketcol, 30 | ribbon=jacketcol 31 | ] 32 | 33 | \fill[billcol] \duckpathbill; 34 | \fill[white!85!yellow, rotate=-20] (-0.06,1.74) ellipse[x radius=0.0786, y radius=0.1143]; 35 | \fill[black, rotate=-20] (-0.03,1.73) ellipse[x radius=0.0286, y radius=0.0643]; 36 | 37 | \end{tikzpicture} 38 | 39 | \end{document} -------------------------------------------------------------------------------- /examples/Phantom_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Phantom_bg.png -------------------------------------------------------------------------------- /examples/Pig.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pig.pdf -------------------------------------------------------------------------------- /examples/Pig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pig.png -------------------------------------------------------------------------------- /examples/Pig.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | body=red!20!white, 10 | bill=red!30!white, 11 | shorthair=red!30!white, 12 | bunny=red!30!white, 13 | inear=red!30!white 14 | ] 15 | \path (0.1,0.1) rectangle (2.1,2.12); 16 | \begin{pgfinterruptboundingbox} 17 | \node[red!20!white,rotate=25,scale=3] at (1.7,1.51) {\textsf{s}}; 18 | \end{pgfinterruptboundingbox} 19 | \end{tikzpicture} 20 | 21 | \end{document} -------------------------------------------------------------------------------- /examples/Pig_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pig_bg.png -------------------------------------------------------------------------------- /examples/PopArt.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PopArt.pdf -------------------------------------------------------------------------------- /examples/PopArt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PopArt.png -------------------------------------------------------------------------------- /examples/PopArt.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{bodya}{RGB}{147,112,219} 6 | \definecolor{haira}{RGB}{244,164,96} 7 | \definecolor{backa}{RGB}{255,69,0} 8 | \definecolor{glasa}{RGB}{0,255,127} 9 | 10 | \definecolor{bodyb}{RGB}{176,224,230} 11 | \definecolor{hairb}{RGB}{255,215,9} 12 | \definecolor{backb}{RGB}{249,207,207} 13 | \definecolor{glasb}{RGB}{255,0,0} 14 | 15 | \definecolor{bodyc}{RGB}{237,212,37} 16 | \definecolor{hairc}{RGB}{255,140,0} 17 | \definecolor{backc}{RGB}{30,144,255} 18 | \definecolor{glasc}{RGB}{255,0,255} 19 | 20 | \definecolor{bodyd}{RGB}{0,100,0} 21 | \definecolor{haird}{RGB}{255,0,0} 22 | \definecolor{backd}{RGB}{148,244,0} 23 | \definecolor{glasd}{RGB}{175,238,238} 24 | 25 | \begin{document} 26 | 27 | \begin{tikzpicture} 28 | 29 | \fill[lightgray] (-0.1,-0.85) rectangle (3.8,2.65); 30 | 31 | \begin{scope} 32 | \clip (0,0.95) rectangle (1.8,2.55); 33 | \fill[backa] (0,0.95) rectangle (1.8,2.55); 34 | 35 | \duck[ 36 | body=bodya, 37 | crazyhair=haira, 38 | glasses=glasa 39 | ] 40 | \end{scope} 41 | 42 | \begin{scope}[xshift=1.9cm] 43 | \clip (0,0.95) rectangle (1.8,2.55); 44 | \fill[backb] (0,0.95) rectangle (1.8,2.55); 45 | 46 | \duck[ 47 | body=bodyb, 48 | crazyhair=hairb, 49 | glasses=glasb 50 | ] 51 | \end{scope} 52 | 53 | \begin{scope}[yshift=-1.7cm] 54 | \clip (0,0.95) rectangle (1.8,2.55); 55 | \fill[backc] (0,0.95) rectangle (1.8,2.55); 56 | 57 | \duck[ 58 | body=bodyc, 59 | crazyhair=hairc, 60 | glasses=glasc 61 | ] 62 | \end{scope} 63 | 64 | \begin{scope}[xshift=1.9cm,yshift=-1.7cm] 65 | \clip (0,0.95) rectangle (1.8,2.55); 66 | \fill[backd] (0,0.95) rectangle (1.8,2.55); 67 | 68 | \duck[ 69 | body=bodyd, 70 | crazyhair=haird, 71 | glasses=glasd 72 | ] 73 | \end{scope} 74 | 75 | \end{tikzpicture} 76 | 77 | \end{document} -------------------------------------------------------------------------------- /examples/PopArt_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PopArt_bg.png -------------------------------------------------------------------------------- /examples/PrincessDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PrincessDuck.pdf -------------------------------------------------------------------------------- /examples/PrincessDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PrincessDuck.png -------------------------------------------------------------------------------- /examples/PrincessDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{pskin}{RGB}{255,200,184} 6 | \definecolor{phair}{RGB}{249,249,139} 7 | 8 | \begin{document} 9 | 10 | \begin{tikzpicture} 11 | \duck[ 12 | body=pskin!80!white, 13 | longhair=phair, 14 | tshirt=magenta!60!white, 15 | jacket=magenta!40!white, 16 | necklace=white!85!yellow 17 | ] 18 | \path (0.7,2) rectangle (1.4,2.55); 19 | \fill[yellow!80!orange,rotate=-10,xshift=-11,yshift=5] \duckpathcrown; 20 | \end{tikzpicture} 21 | 22 | \end{document} -------------------------------------------------------------------------------- /examples/PrincessDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/PrincessDuck_bg.png -------------------------------------------------------------------------------- /examples/Pythagoras.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pythagoras.pdf -------------------------------------------------------------------------------- /examples/Pythagoras.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pythagoras.png -------------------------------------------------------------------------------- /examples/Pythagoras.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | % Created by Denis Bitouzé 3 | % https://texnique.fr/osqa/questions/7046/mettre-un-paragraphe-de-texte-et-une-image-cote-a-cote/7055 4 | \documentclass{standalone} 5 | 6 | \usepackage{tikzducks} 7 | 8 | \begin{document} 9 | 10 | \begin{tikzpicture} 11 | \duck[recedinghair=white,beard,book] 12 | \begin{scope}[scale=0.03,rotate=-20,xshift=500,yshift=700] 13 | \draw[white,rotate around={36.9:(5,5)}] (5,5) rectangle ++(3,3); 14 | \draw[white,rotate around={36.9:(0,5)}] (0,5) rectangle ++(4,4); 15 | \draw[white] (0,0) rectangle (5,5); 16 | \end{scope} 17 | \end{tikzpicture} 18 | 19 | \end{document} -------------------------------------------------------------------------------- /examples/Pythagoras_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Pythagoras_bg.png -------------------------------------------------------------------------------- /examples/QuackLongAndProsper.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QuackLongAndProsper.pdf -------------------------------------------------------------------------------- /examples/QuackLongAndProsper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QuackLongAndProsper.png -------------------------------------------------------------------------------- /examples/QuackLongAndProsper.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | \usepackage{fontawesome} 5 | 6 | \definecolor{unigold}{RGB}{203,157,52}% 7 | \definecolor{uniblue}{RGB}{46,114,167}% 8 | \definecolor{unired}{RGB}{177,49,34}% 9 | 10 | \definecolor{skink}{RGB}{245,206,193}% 11 | \definecolor{skins}{RGB}{255,222,151}% 12 | \definecolor{skinu}{RGB}{146,113,96}% 13 | 14 | \newcommand*{\insignia}{\node[rotate=15] at (wing) {\color{yellow!80!brown}\faLocationArrow};} 15 | 16 | \begin{document} 17 | 18 | \begin{tikzpicture} 19 | \duck[ 20 | tshirt=black!60!gray, 21 | jacket=unigold, 22 | body=skink, 23 | shorthair=brown!80!black, 24 | bill=skink!60!gray 25 | ] 26 | \insignia 27 | \end{tikzpicture} 28 | 29 | \begin{tikzpicture} 30 | \duck[ 31 | tshirt=black!60!gray, 32 | jacket=uniblue, 33 | body=skins, 34 | mullet=black!60!brown, 35 | bill=skins!60!gray 36 | ] 37 | \fill[skins,rotate=175, xshift=-46, yshift=-74] (0.45,1.20) -- (0.50,0.80) -- (0.65,1.20); 38 | \fill[black!60!brown, rounded corners=1, rotate=70] (1.85,0.13) rectangle (1.91,-0.05); 39 | \fill[black!60!brown, rounded corners=1, rotate=90] (1.7,-0.75) rectangle (1.76,-0.97); 40 | \insignia 41 | \end{tikzpicture} 42 | 43 | \begin{tikzpicture} 44 | \duck[ 45 | tshirt=black!60!gray, 46 | jacket=unired, 47 | body=skinu, 48 | longhair=black!60!brown, 49 | bill=skinu!70!black 50 | ] 51 | \insignia 52 | \end{tikzpicture} 53 | 54 | \end{document} -------------------------------------------------------------------------------- /examples/QuackLongAndProsper_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QuackLongAndProsper_bg.png -------------------------------------------------------------------------------- /examples/QueenDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QueenDuck.pdf -------------------------------------------------------------------------------- /examples/QueenDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QueenDuck.png -------------------------------------------------------------------------------- /examples/QueenDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{qskin}{RGB}{225,219,206} 6 | \definecolor{qbill}{RGB}{170,123,154} 7 | \definecolor{qdress}{RGB}{184,209,206} 8 | \definecolor{qcrown}{RGB}{90,76,183} 9 | 10 | \begin{document} 11 | 12 | \begin{tikzpicture} 13 | \duck[ 14 | body=qskin, 15 | bill=qbill, 16 | jacket=qdress, 17 | tshirt=teal!30!qdress, 18 | shorthair=gray!60!white, 19 | necklace=gray!10!white, 20 | handbag=teal!30!qdress 21 | ] 22 | \fill[gray!60!white,rotate=-30] (0.27,1.23) rectangle (0.37,0.65); 23 | \fill[qcrown,scale=0.23,rotate=-20,yshift=82,xshift=38] \duckpathqueencrown; 24 | \fill[qcrown,yshift=3] \duckpathkingcrown; 25 | \end{tikzpicture} 26 | 27 | \end{document} -------------------------------------------------------------------------------- /examples/QueenDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QueenDuck_bg.png -------------------------------------------------------------------------------- /examples/QueensSwanUpper.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QueensSwanUpper.pdf -------------------------------------------------------------------------------- /examples/QueensSwanUpper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QueensSwanUpper.png -------------------------------------------------------------------------------- /examples/QueensSwanUpper.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[tshirt=white!90!gray,jacket=red!80!black,tie=black!70!gray,peakedcap=black!70!gray,buttons=yellow!80!orange] 9 | \fill[white!90!gray,rotate=-35] (-0.25,2.2) ellipse (0.555 and 0.175); 10 | \draw[white!70!gray] (0.7,1.85) -- (1.0,2.0); 11 | \fill[white!70!gray,rotate=25] (2.0,1.4) ellipse (0.45 and 0.12); 12 | \end{tikzpicture} 13 | 14 | \end{document} -------------------------------------------------------------------------------- /examples/QueensSwanUpper_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/QueensSwanUpper_bg.png -------------------------------------------------------------------------------- /examples/RomanDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/RomanDuck.pdf -------------------------------------------------------------------------------- /examples/RomanDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/RomanDuck.png -------------------------------------------------------------------------------- /examples/RomanDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/RomanDuck_bg.png -------------------------------------------------------------------------------- /examples/SadDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SadDuck.pdf -------------------------------------------------------------------------------- /examples/SadDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SadDuck.png -------------------------------------------------------------------------------- /examples/SadDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[grumpy,eye=yellow!70!brown] 9 | \fill[white!85!yellow] (0.9121,1.5426) .. controls (0.9357,1.6075) and (0.9015,1.6397) .. (0.8552,1.6566) .. controls (0.8088,1.6735) and (0.7652,1.6477) .. (0.7442,1.6038) .. controls (0.7205,1.5388) and (0.7390,1.4725) .. (0.7853,1.4557) .. controls (0.8317,1.4388) and (0.8885,1.4777) .. (0.9121,1.5426) -- cycle (0.6199,1.6197) .. controls (0.6415,1.6790) and (0.6260,1.7156) .. (0.5852,1.7304) .. controls (0.5443,1.7453) and (0.4937,1.7328) .. (0.4721,1.6735) .. controls (0.4505,1.6141) and (0.4661,1.5540) .. (0.5069,1.5391) .. controls (0.5477,1.5243) and (0.5983,1.5603) .. (0.6199,1.6197) -- cycle; 10 | \fill[black, rotate=-20] (0.26,1.7575) ellipse (0.0357 and 0.0714); 11 | \fill[black, rotate=-20] (-0.03,1.73) ellipse (0.0286 and 0.0643); 12 | \fill[yellow!30!brown] (0.9778,1.6871) .. controls (0.9011,1.6753) and (0.8740,1.7030) .. (0.8531,1.7606) .. controls (0.8034,1.6833) and (0.9421,1.6177) .. (0.9778,1.6871) -- cycle (0.6229,1.8394) .. controls (0.5901,1.7822) and (0.5420,1.7734) .. (0.4966,1.8048) .. controls (0.5213,1.7300) and (0.6310,1.7565) .. (0.6229,1.8394) -- cycle; 13 | \fill[cyan!50!white] (0.9026,1.3929) .. controls (0.9135,1.3706) and (0.8889,1.3471) .. (0.8719,1.3471) .. controls (0.8549,1.3471) and (0.8303,1.3706) .. (0.8412,1.3929) .. controls (0.8519,1.4148) and (0.8549,1.4150) .. (0.8719,1.4388) .. controls (0.8827,1.4099) and (0.8904,1.4182) .. (0.9026,1.3929) -- cycle (0.9499,1.2931) .. controls (0.9608,1.2707) and (0.9362,1.2472) .. (0.9192,1.2472) .. controls (0.9022,1.2472) and (0.8776,1.2708) .. (0.8885,1.2931) .. controls (0.8992,1.3150) and (0.9022,1.3151) .. (0.9192,1.3389) .. controls (0.9300,1.3100) and (0.9377,1.3184) .. (0.9499,1.2931) -- cycle; 14 | \end{tikzpicture} 15 | 16 | \end{document} -------------------------------------------------------------------------------- /examples/SadDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SadDuck_bg.png -------------------------------------------------------------------------------- /examples/SailorDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SailorDuck.pdf -------------------------------------------------------------------------------- /examples/SailorDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SailorDuck.png -------------------------------------------------------------------------------- /examples/SailorDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | \usepackage{fontawesome5} 5 | 6 | \begin{document} 7 | 8 | \begin{tikzpicture} 9 | \duck[ 10 | jacket=white, 11 | neckerchief=blue!50!black, 12 | woggle=blue!50!black, 13 | sailor=white 14 | ] 15 | \node[scale=0.8,inner sep=0pt] at (1.07,2.03) {\rotatebox{-20}{\color{blue!50!black}\faAnchor}}; 16 | \end{tikzpicture} 17 | 18 | \end{document} -------------------------------------------------------------------------------- /examples/SailorDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SailorDuck_bg.png -------------------------------------------------------------------------------- /examples/Samcarter.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Samcarter.pdf -------------------------------------------------------------------------------- /examples/Samcarter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Samcarter.png -------------------------------------------------------------------------------- /examples/Samcarter.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /examples/Samcarter.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | body=yellow!50!brown!50!white, 10 | longhair=red!50!brown, 11 | jacket=blue!50!black 12 | ] 13 | \end{tikzpicture} 14 | 15 | \end{document} -------------------------------------------------------------------------------- /examples/Samcarter_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Samcarter_bg.png -------------------------------------------------------------------------------- /examples/Shakespeare.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Shakespeare.pdf -------------------------------------------------------------------------------- /examples/Shakespeare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Shakespeare.png -------------------------------------------------------------------------------- /examples/Shakespeare.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks,tikzlings} 4 | 5 | \usetikzlibrary{decorations.shapes,shapes.geometric} \tikzset{ 6 | paint/.style={draw=#1, fill=#1}, 7 | decorate with/.style={ 8 | decorate, 9 | decoration={shape backgrounds,shape=#1,shape size=2mm} 10 | } 11 | } 12 | 13 | \begin{document} 14 | 15 | \begin{tikzpicture}[scale=5] 16 | \duck[tshirt=red!40!black] 17 | 18 | \begin{pgfinterruptboundingbox} 19 | 20 | % decorative lines 21 | \draw[red!60!black, line width=8pt] (0.4516,1.0436) .. controls (0.3563,0.9851) and (0.0028,0.6638) .. (0.3551,0.3180) .. controls (0.3176,0.6584) and (0.4305,0.8439) .. (0.5095,0.9433) -- cycle; 22 | \draw[red!60!black, line width=8pt] (0.5528,0.2249) .. controls (1.0301,0.0845) and (2.5509,0.2722) .. (1.8114,1.3178) .. controls (0.8728,0.8445) and (1.3067,1.1798) .. (0.6800,0.9162) .. controls (0.4872,0.6211) and (0.4847,0.3481) .. (0.5528,0.2249) -- cycle; 23 | 24 | % buttons 25 | \draw[decorate with=circle, paint=red!60!black] (0.4488,0.2173) .. controls (0.4113,0.5578) and (0.4478,0.7328) .. (0.5858,0.9190); 26 | 27 | % collar 28 | \fill[brown!60!white] (0.4903,1.1495) .. controls (0.2672,1.1065) and (0.0760,0.9976) .. (0.0760,0.9976) .. controls (0.0760,0.9976) and (0.6221,1.0565) .. (0.9635,0.7604) .. controls (1.0802,1.1411) and (1.3613,1.2348) .. (1.3613,1.2348) .. controls (0.7249,1.0939) and (0.5904,1.0045) .. (0.5904,1.0045) -- cycle; 29 | 30 | % hair 31 | \fill[brown!50!black] (1.3513, 1.2210) .. controls (1.436, 1.2619) and (1.5207, 1.4022) .. (1.4779, 1.4733) .. controls (1.4478, 1.5233) and (1.404, 1.5447) .. (1.3918, 1.6228) .. controls (1.3795, 1.7009) and (1.3832, 1.8319) .. (1.3396, 1.8918) .. controls (1.2345, 2.0363) and (1.0169, 2.1484) .. (0.8458, 2.1329) .. controls (0.7602, 2.1251) and (0.6856, 2.1076) .. (0.6193, 2.0544) .. controls (0.553, 2.0013) and (0.3646, 1.9095) .. (0.361, 1.821) .. controls (0.3594, 1.7811) and (0.3548, 1.7426) .. (0.3481, 1.7058) .. controls (0.3414, 1.6689) and (0.3132, 1.6336) .. (0.3031, 1.6000) .. controls (0.2931, 1.5664) and (0.3012, 1.5344) .. (0.2896, 1.5041) .. controls (0.278, 1.4739) and (0.2661, 1.4453) .. (0.2547, 1.4186) .. controls (0.2068, 1.3059) and (0.2969, 1.2225) .. (0.4156, 1.2723) .. controls (0.3158, 1.5798) and (0.5698, 2.1437) .. (0.8839, 2.1002) .. controls (1.1639, 2.0615) and (1.3879, 1.672) .. (1.0851, 1.2765) .. controls (0.9804, 1.0784) and (1.2697, 1.1816) .. (1.3513, 1.2210) -- cycle; 32 | 33 | % redraw bill on top of the hair 34 | \fill[orange] \duckpathbill; 35 | 36 | \end{pgfinterruptboundingbox} 37 | 38 | \end{tikzpicture} 39 | 40 | \end{document} -------------------------------------------------------------------------------- /examples/Shakespeare_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Shakespeare_bg.png -------------------------------------------------------------------------------- /examples/Sheep.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Sheep.pdf -------------------------------------------------------------------------------- /examples/Sheep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Sheep.png -------------------------------------------------------------------------------- /examples/Sheep.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | body=white!90!brown, 10 | bill=white!60!brown, 11 | sheep 12 | ] 13 | \end{tikzpicture} 14 | 15 | \end{document} -------------------------------------------------------------------------------- /examples/Sheep_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Sheep_bg.png -------------------------------------------------------------------------------- /examples/Snowduck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Snowduck.pdf -------------------------------------------------------------------------------- /examples/Snowduck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Snowduck.png -------------------------------------------------------------------------------- /examples/Snowduck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | snowduck=white 10 | ] 11 | \end{tikzpicture} 12 | 13 | \end{document} -------------------------------------------------------------------------------- /examples/Snowduck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Snowduck_bg.png -------------------------------------------------------------------------------- /examples/Soup.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Soup.pdf -------------------------------------------------------------------------------- /examples/Soup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Soup.png -------------------------------------------------------------------------------- /examples/Soup.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | \begin{tikzpicture}[inner sep=0pt] 7 | \node at (1.2,2.7) {\includegraphics[width=14cm]{SoupCan}}; 8 | \duck[% 9 | chef=white, 10 | tshirt=white, 11 | buttons=blue, 12 | rollingpin=brown!80!black] 13 | ] 14 | \end{tikzpicture} 15 | \end{document} -------------------------------------------------------------------------------- /examples/Soup_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Soup_bg.png -------------------------------------------------------------------------------- /examples/StarDucks.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/StarDucks.pdf -------------------------------------------------------------------------------- /examples/StarDucks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/StarDucks.png -------------------------------------------------------------------------------- /examples/StarDucks.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | \usepackage{marvosym} 5 | 6 | \definecolor{sgskin}{RGB}{222,197,159} 7 | \definecolor{sgblond}{RGB}{238,203,96} 8 | \colorlet{sggreen}{olive!50!black} 9 | \colorlet{sgbill}{sgskin!85!black} 10 | \colorlet{sgshirt}{sggreen!50!black} 11 | 12 | \begin{document} 13 | 14 | \begin{tikzpicture} 15 | \duck[ 16 | body=sgskin, 17 | bill=sgbill, 18 | tshirt=sgshirt, 19 | jacket=sggreen, 20 | cap=sggreen 21 | ] 22 | \end{tikzpicture} 23 | 24 | \begin{tikzpicture} 25 | \duck[ 26 | body=sgskin, 27 | bill=sgbill, 28 | tshirt=sgshirt, 29 | jacket=sggreen, 30 | shorthair=sgblond 31 | ] 32 | \end{tikzpicture} 33 | 34 | \begin{tikzpicture} 35 | \duck[ 36 | body=sgskin, 37 | bill=sgbill, 38 | tshirt=sgshirt, 39 | jacket=sggreen, 40 | parting=brown!70!black, 41 | glasses=brown!30!gray, 42 | book={\AA}, 43 | bookcolour=brown!50!black 44 | ] 45 | \end{tikzpicture} 46 | 47 | \begin{tikzpicture} 48 | \duck[ 49 | body=brown!80!black, 50 | bill=brown!65!black, 51 | tshirt=sgshirt, 52 | jacket=sggreen, 53 | grumpy 54 | ] 55 | \fill[sgblond, rotate=-10] (0.45,2.0) ellipse (0.12 and 0.05); 56 | \node[rotate=170] at (0.8,1.89) {\scalebox{0.35}{\Leo}}; 57 | \end{tikzpicture} 58 | 59 | \end{document} -------------------------------------------------------------------------------- /examples/StarDucks_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/StarDucks_bg.png -------------------------------------------------------------------------------- /examples/SuperDuckBrothers.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SuperDuckBrothers.pdf -------------------------------------------------------------------------------- /examples/SuperDuckBrothers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SuperDuckBrothers.png -------------------------------------------------------------------------------- /examples/SuperDuckBrothers.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \newcommand{\superstripes}{% 6 | \stripes[color=blue!80!black,width=3,height=1.0,rotate=5] 7 | \stripes[color=blue!80!black,width=0.1,rotate=0,distance=0.7,initialx=-1.1,height=2] 8 | } 9 | 10 | \begin{document} 11 | 12 | \begin{tikzpicture} 13 | \duck[ 14 | tshirt=red!80!black, 15 | peakedcap=red!80!black, 16 | stripes={\superstripes} 17 | ] 18 | \fill[white] (0.8,2) circle (0.13); 19 | \node[red!80!black,rotate=-25] at (0.8,2) {\scalebox{0.6}{\textsf{M}}}; 20 | \end{tikzpicture} 21 | 22 | \begin{tikzpicture} 23 | \duck[ 24 | tshirt=green!70!black, 25 | peakedcap=green!70!black, 26 | stripes={\superstripes} 27 | ] 28 | \fill[white] (0.8,2) circle (0.13); 29 | \node[green!70!black,rotate=-25] at (0.8,2) {\scalebox{0.6}{\textsf{L}}}; 30 | \end{tikzpicture} 31 | 32 | \end{document} -------------------------------------------------------------------------------- /examples/SuperDuckBrothers_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/SuperDuckBrothers_bg.png -------------------------------------------------------------------------------- /examples/Teaser.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Teaser.pdf -------------------------------------------------------------------------------- /examples/Teaser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Teaser.png -------------------------------------------------------------------------------- /examples/Teaser.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{scrartcl} 3 | 4 | \usepackage[T1]{fontenc} 5 | \usepackage[utf8]{inputenc} 6 | \usepackage[english]{babel} 7 | \usepackage[bitstream-charter]{mathdesign} 8 | \usepackage{tikzducks} 9 | \usetikzlibrary{ducks} 10 | \usepackage[paper=a4paper,margin=3cm]{geometry} 11 | \usepackage{marvosym} 12 | \usepackage{fontawesome} 13 | 14 | % customisation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15 | \definecolor{duckblue}{RGB}{0,70,140} 16 | 17 | \begin{document} 18 | 19 | \begin{tikzpicture} 20 | \duck[cap=red!80!black] 21 | \end{tikzpicture} 22 | % 23 | \begin{tikzpicture} 24 | \duck[witch=black!50!gray, 25 | longhair=red!80!black, 26 | jacket=black!50!gray, 27 | magicwand] 28 | \end{tikzpicture} 29 | % 30 | \definecolor{mggreen}{RGB}{37,166,89}% 31 | \begin{tikzpicture} 32 | \duck[mohican,tshirt=mggreen,stripes={\stripes},football] 33 | \end{tikzpicture} 34 | % 35 | \begin{tikzpicture} 36 | \duck[body=yellow!50!brown!40!white, 37 | crazyhair=gray!50!white, 38 | eyebrow, 39 | glasses=brown!70!black, 40 | book=\scalebox{0.2}{$E=mc^2$}, 41 | bookcolour=red!20!brown] 42 | \end{tikzpicture} 43 | % 44 | \begin{tikzpicture} 45 | \colorlet{skin}{white!45!gray!80!green} 46 | \duck[lightsaber, body=skin, bill=gray!80!green, 47 | tshirt=brown!50!black, jacket=brown!30!gray] 48 | \fill[skin,rounded corners=3] (0.44,1.70) -- (0.25,2) -- (0.6,1.95); 49 | \fill[skin,rounded corners=3] (1.34,1.60) -- (1.53,1.9) -- (1.16,1.85); 50 | \end{tikzpicture} 51 | % 52 | \begin{tikzpicture} 53 | \duck[body=yellow!60!red!30!white,tshirt=white!90!yellow,stripes={\stripes[color=blue!70!black,rotate=-87,width=0.07,distance=0.12]},beret=blue!30!black,baguette=brown] 54 | \end{tikzpicture} 55 | 56 | 57 | % 58 | \definecolor{unigold}{RGB}{203,157,52}% 59 | \definecolor{uniblue}{RGB}{46,114,167}% 60 | \definecolor{unired}{RGB}{177,49,34}% 61 | % 62 | \definecolor{skink}{RGB}{245,206,193}% 63 | \definecolor{skins}{RGB}{255,222,151}% 64 | \definecolor{skinu}{RGB}{146,113,96}% 65 | % 66 | \newcommand*{\insignia}{\node[rotate=15] at (wing) {\color{yellow!80!brown}\faLocationArrow};} 67 | % 68 | \begin{tikzpicture} 69 | \duck[tshirt=black!60!gray, jacket=uniblue, body=skins, mullet=black!60!brown, bill=skins!60!gray] 70 | \fill[skins,rotate=175, xshift=-46, yshift=-74] (0.45,1.20)--(0.50,0.80)--(0.65,1.20); 71 | \fill[black!60!brown, rounded corners=1, rotate=70] (1.85,0.13) rectangle (1.91,-0.05); 72 | \fill[black!60!brown, rounded corners=1, rotate=90] (1.7,-0.75) rectangle (1.76,-0.97); 73 | \insignia 74 | \end{tikzpicture} 75 | % 76 | \begin{tikzpicture} 77 | \duck[stripes={\stripes[distance=0.4,width=0.2,rotate=0,initialx=0.15]},alien=black,laughing] 78 | \end{tikzpicture} 79 | % 80 | \newcommand{\superstripes}{\stripes[color=blue!80!black,width=3,height=1.0,rotate=5] \stripes[color=blue!80!black,width=0.1,rotate=0,distance=0.7,initialx=-1.1,height=2]} 81 | \begin{tikzpicture} 82 | \duck[tshirt=red!80!black,peakedcap=red!80!black,stripes={\superstripes}] 83 | \fill[white] (0.8,2) circle (0.13); 84 | \node[red!80!black,rotate=-25] at (0.8,2) {\scalebox{0.6}{\textsf{M}}}; 85 | \end{tikzpicture} 86 | % 87 | \definecolor{fskin}{RGB}{161,140,126}% 88 | \definecolor{fbill}{RGB}{238,212,191}% 89 | \definecolor{fhair}{RGB}{89,72,72}% 90 | \begin{tikzpicture} 91 | \duck[body=fskin,bill=fbill,shorthair=fhair,bunny,inear=fbill] 92 | \node[fskin,rotate=45,scale=3] at (1.7,1.55) {\textsf{s}}; 93 | \fill[fhair,rotate=45] (2.4,0.13) ellipse (0.15 and 0.07); 94 | \end{tikzpicture} 95 | % 96 | \hspace*{-1.5em} 97 | % 98 | \begin{tikzpicture} 99 | \duck[magichat,magicwand] 100 | \end{tikzpicture} 101 | % 102 | \begin{tikzpicture} 103 | \duck[glasses, 104 | bookcolour=black!60!brown, 105 | book={ 106 | \scalebox{0.14}{ 107 | \parbox{2.5cm}{ 108 | \sffamily 109 | \centering 110 | \footnotesize 111 | Wir m\"ussen wissen.\\ 112 | Wir werden wissen.\\[0.4cm] 113 | $1+1=2$}}} 114 | ] 115 | \fill[gray!30!white,rotate=-15] (0.44,2.0) ellipse (0.75 and 0.1); 116 | \fill[gray!30!white,rotate=-15] (0.1,2.05) rectangle (0.78,2.5); 117 | \fill[gray!30!white,rotate=-15] (0.44,2.5) ellipse (0.34 and 0.08); 118 | \fill[gray!30!white,rotate=-15] (-0.3,2.02) -- (1.18,2.02) -- (0.78,2.2) -- (0.1,2.2) -- cycle; 119 | \fill[black,rotate=-15] (0.44,2.2) ellipse (0.34 and 0.08); 120 | \fill[black,rotate=-15] (0.1,2.2) rectangle (0.78,2.3); 121 | \fill[gray!30!white,rotate=-15] (0.44,2.3) ellipse (0.34 and 0.08); 122 | \end{tikzpicture} 123 | 124 | \end{document} -------------------------------------------------------------------------------- /examples/Teaser_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Teaser_bg.png -------------------------------------------------------------------------------- /examples/Ulrike.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ulrike.pdf -------------------------------------------------------------------------------- /examples/Ulrike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ulrike.png -------------------------------------------------------------------------------- /examples/Ulrike.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | 4 | \usepackage{tikzducks} 5 | 6 | \colorlet{dark}{black!75!white} 7 | \colorlet{light}{yellow!70!brown!50!white} 8 | \colorlet{accent}{orange!50!brown} 9 | 10 | % Turm %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11 | \newcommand{\turm}[1]{% 12 | \begin{scope}[scale=0.38] 13 | \duck[body=#1,bill=accent] 14 | \end{scope} 15 | \path[fill=gray,yshift=-45,xshift=-8] (0.0959,0.1866) .. controls (0.0908,0.2574) and (0.0900,0.3748) .. (0.1928,0.3609) .. controls (0.2295,0.3527) and (0.2359,0.3750) .. (0.2326,0.4070) .. controls (0.2337,0.4816) and (0.2438,0.5571) .. (0.2849,0.6214) .. controls (0.3553,0.7835) and (0.3522,0.9650) .. (0.3641,1.1382) .. controls (0.3678,1.2187) and (0.3676,1.2993) .. (0.3675,1.3799) .. controls (0.3183,1.3832) and (0.2443,1.3768) .. (0.2356,1.4412) .. controls (0.2297,1.6004) and (0.2294,1.7604) .. (0.2367,1.9196) .. controls (0.2988,1.9217) and (0.3843,1.9393) .. (0.4339,1.9106) .. controls (0.4300,1.8436) and (0.4255,1.7539) .. (0.5208,1.7857) .. controls (0.5477,1.7857) and (0.5820,1.7785) .. (0.5698,1.8176) .. controls (0.5717,1.8659) and (0.5553,1.9453) .. (0.6308,1.9238) .. controls (0.7009,1.9243) and (0.7710,1.9230) .. (0.8411,1.9226) .. controls (0.8425,1.8787) and (0.8439,1.8348) .. (0.8453,1.7909) .. controls (0.8892,1.7909) and (0.9331,1.7909) .. (0.9770,1.7909) .. controls (0.9784,1.8348) and (0.9798,1.8787) .. (0.9812,1.9226) .. controls (1.0478,1.9226) and (1.1143,1.9226) .. (1.1809,1.9226) .. controls (1.1794,1.7563) and (1.1845,1.5897) .. (1.1771,1.4236) .. controls (1.1574,1.3706) and (1.0943,1.3835) .. (1.0492,1.3790) .. controls (1.0532,1.1475) and (1.0506,0.9124) .. (1.1071,0.6864) .. controls (1.1310,0.6073) and (1.1880,0.5375) .. (1.1819,0.4508) .. controls (1.1864,0.4236) and (1.1780,0.3839) .. (1.1895,0.3637) .. controls (1.2346,0.3602) and (1.3001,0.3702) .. (1.3145,0.3141) .. controls (1.3197,0.2396) and (1.3177,0.1647) .. (1.3193,0.0900) .. controls (0.9114,0.0900) and (0.5036,0.0900) .. (0.0957,0.0900) .. controls (0.0958,0.1222) and (0.0959,0.1544) .. (0.0959,0.1866) -- cycle; 16 | } 17 | 18 | \begin{document} 19 | 20 | \begin{tikzpicture}[xscale=-1] 21 | \turm{dark} 22 | \end{tikzpicture} 23 | 24 | \begin{tikzpicture} 25 | \turm{light} 26 | \end{tikzpicture} 27 | 28 | \end{document} -------------------------------------------------------------------------------- /examples/Ulrike_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Ulrike_bg.png -------------------------------------------------------------------------------- /examples/Unicorn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Unicorn.pdf -------------------------------------------------------------------------------- /examples/Unicorn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Unicorn.png -------------------------------------------------------------------------------- /examples/Unicorn.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | \usepackage{pgf-spectra} 5 | \pgfspectrashade[v](380,780){myShadeC} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture}[shading=myShadeC] 10 | \duck[body=pink] 11 | \shade[shading angle=45] \duckpathlonghair; 12 | \duck[invisible,body=pink,unicorn=magenta!60!violet] 13 | \end{tikzpicture} 14 | 15 | \end{document} 16 | -------------------------------------------------------------------------------- /examples/Unicorn_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Unicorn_bg.png -------------------------------------------------------------------------------- /examples/Vampire.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vampire.pdf -------------------------------------------------------------------------------- /examples/Vampire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vampire.png -------------------------------------------------------------------------------- /examples/Vampire.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /examples/Vampire.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | body=black!80!white, 10 | laughing, 11 | cape=red!70!black, 12 | shorthair=black, 13 | vampire 14 | ] 15 | \fill[black] (0.65,2) -- (0.75,1.85) -- (0.9,2) -- cycle; 16 | \end{tikzpicture} 17 | 18 | \end{document} -------------------------------------------------------------------------------- /examples/Vampire_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vampire_bg.png -------------------------------------------------------------------------------- /examples/Vietnam.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vietnam.pdf -------------------------------------------------------------------------------- /examples/Vietnam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vietnam.png -------------------------------------------------------------------------------- /examples/Vietnam.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \definecolor{skin}{RGB}{249,226,174} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture} 10 | \duck[ 11 | body=skin, 12 | conicalhat, 13 | aodai=blue!50!black, 14 | tshirt=cyan 15 | ] 16 | \end{tikzpicture} 17 | 18 | \end{document} -------------------------------------------------------------------------------- /examples/Vietnam_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vietnam_bg.png -------------------------------------------------------------------------------- /examples/Viking.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Viking.pdf -------------------------------------------------------------------------------- /examples/Viking.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Viking.png -------------------------------------------------------------------------------- /examples/Viking.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[viking] 9 | \end{tikzpicture} 10 | 11 | \end{document} -------------------------------------------------------------------------------- /examples/Viking_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Viking_bg.png -------------------------------------------------------------------------------- /examples/Vikings.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vikings.pdf -------------------------------------------------------------------------------- /examples/Vikings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vikings.png -------------------------------------------------------------------------------- /examples/Vikings.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass[tikz]{standalone} 3 | 4 | \usepackage{tikzducks} 5 | \usetikzlibrary{patterns} 6 | 7 | \begin{document} 8 | 9 | \begin{tikzpicture} 10 | 11 | % background 12 | \path[fill=green!40!blue!30!white] (-4.3,2) rectangle (6.3,12); 13 | 14 | \begin{pgfinterruptboundingbox} 15 | 16 | % mast 17 | \duck[body=green!50!yellow,parrot,xscale=-1,scale=0.3,yshift=940,rotate=-15,crazyhair=teal,xshift=-50] 18 | \path[fill=brown!60!black] (0.0857,9.9673) -- (1.0226,3.8435) -- (1.6154,3.9597) -- (0.2873,10.0376) -- cycle; 19 | \path[fill=brown!60!black,rotate=15] (2.73,9.6) ellipse (0.4 and 0.1); 20 | 21 | % vikings 22 | \duck[viking,xscale=-1,rotate=-10,yshift=90,xshift=-80] 23 | \duck[viking,xscale=-1,rotate=-30,yshift=50,xshift=-180] 24 | \duck[viking,xscale=-1,rotate=20,yshift=85,xshift=50] 25 | 26 | % sail 27 | \fill[red] (-1.4847,9.3216) .. controls (-0.1298,9.3362) and (0.3333,9.2219) .. (1.4669,8.6632) .. controls (2.1061,7.9422) and (2.4818,6.5239) .. (1.8402,5.8051) .. controls (1.5278,5.7129) and (1.3297,7.2643) .. (-0.5769,5.7317) .. controls (-0.5700,6.0865) and (0.4656,8.0283) .. (-1.4847,9.3216) -- cycle;; 28 | \begin{scope} 29 | \clip (-1.4847,9.3216) .. controls (-0.1298,9.3362) and (0.3333,9.2219) .. (1.4669,8.6632) .. controls (2.1061,7.9422) and (2.4818,6.5239) .. (1.8402,5.8051) .. controls (1.5278,5.7129) and (1.3297,7.2643) .. (-0.5769,5.7317) .. controls (-0.5700,6.0865) and (0.4656,8.0283) .. (-1.4847,9.3216) -- cycle;; 30 | \foreach \shifta in {-1.5,-1,...,2.3}{% 31 | \fill[white] 32 | ($(0,5.5)+(\shifta,0)$) rectangle ($(0,5.5)+(\shifta,0)+(0.25,4)$); 33 | } 34 | \end{scope} 35 | 36 | % boat 37 | \path[fill=brown!80!black] (-2.3957,5.8651) .. controls (-2.6637,3.1459) and (4.5256,3.2048) .. (4.3064,6.6244) .. controls (6.6473,1.3173) and (-3.7900,0.9272) .. (-2.3957,5.8651) -- cycle; 38 | 39 | % water 40 | \path[fill=green!60!blue!50!white] (-4.2891,3.1257) .. controls (-4.3137,3.4742) and (-3.7244,3.9743) .. (-3.3880,3.7964) .. controls (-3.9762,3.2443) and (-3.7539,3.2425) .. (-3.5372,3.1164) .. controls (-3.1852,2.9117) and (-3.0491,4.0248) .. (-2.4082,3.6946) .. controls (-2.7948,3.2069) and (-2.6081,3.1905) .. (-2.3768,3.0249) .. controls (-2.0065,2.7598) and (-2.0491,3.9722) .. (-1.3783,3.7032) .. controls (-1.7223,3.3772) and (-1.4751,3.2329) .. (-1.2906,3.0481) .. controls (-0.9405,2.6974) and (-0.9588,3.9518) .. (-0.2021,3.6196) .. controls (-0.5232,3.3028) and (-0.3364,3.1138) .. (-0.1597,2.9124) .. controls (0.1198,2.5935) and (0.1999,3.9816) .. (0.8168,3.6507) .. controls (0.5074,3.3603) and (0.7730,3.0752) .. (0.9586,2.8950) .. controls (1.2695,2.5933) and (1.0226,3.8435) .. (1.8147,3.6503) .. controls (1.5901,3.4357) and (1.7102,3.1127) .. (1.8897,2.9697) .. controls (2.1998,2.7227) and (2.1749,3.8962) .. (2.8898,3.7299) .. controls (2.6783,3.4145) and (2.7316,3.1829) .. (2.9351,3.0104) .. controls (3.3036,2.6980) and (3.7341,4.0701) .. (4.1205,3.7756) .. controls (3.6541,3.1196) and (4.0195,3.0422) .. (4.0195,3.0422) .. controls (4.3705,2.8179) and (4.5151,4.0299) .. (5.1137,3.8400) .. controls (4.9154,3.4986) and (4.8256,3.3619) .. (5.0856,3.1999) .. controls (5.5309,2.9223) and (5.5427,4.1017) .. (5.9650,3.7967) .. controls (5.5063,3.1862) and (6.3001,3.1472) .. (6.3001,3.1472) -- (6.2888,1.7053) -- (-4.2612,1.6876) -- cycle; 41 | \end{pgfinterruptboundingbox} 42 | 43 | \end{tikzpicture} 44 | 45 | \end{document} -------------------------------------------------------------------------------- /examples/Vikings_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Vikings_bg.png -------------------------------------------------------------------------------- /examples/YankeeDuck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/YankeeDuck.pdf -------------------------------------------------------------------------------- /examples/YankeeDuck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/YankeeDuck.png -------------------------------------------------------------------------------- /examples/YankeeDuck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass[margin=1pt]{standalone} 3 | 4 | \usepackage{tikz} 5 | \usepackage{tikzlings} 6 | \usepackage{tikzducks} 7 | 8 | \definecolor{dblue}{RGB}{41,38,66} 9 | \definecolor{dred}{RGB}{255,90,85} 10 | 11 | \usetikzlibrary{patterns.meta} 12 | \tikzdeclarepattern{ 13 | name=myStars, 14 | type=uncolored, 15 | bounding box={(-2pt,-2pt) and (2pt,2pt)}, 16 | tile size={(\tikztilesize,\tikztilesize)}, 17 | parameters={\tikzstarpoints,\tikzstarradius,\tikzstarrotate,\tikztilesize}, 18 | tile transformation={rotate=\tikzstarrotate}, 19 | defaults={ 20 | points/.store in=\tikzstarpoints,points=5, 21 | radius/.store in=\tikzstarradius,radius=1pt, 22 | rotate/.store in=\tikzstarrotate,rotate=0, 23 | tile size/.store in=\tikztilesize,tile size=3pt, 24 | }, code={ 25 | \pgfmathparse{180/\tikzstarpoints}\let\a=\pgfmathresult 26 | \fill (90:\tikzstarradius) \foreach \i in {1,...,\tikzstarpoints}{ 27 | -- (90+2*\i*\a-\a:\tikzstarradius/2) -- (90+2*\i*\a:\tikzstarradius) 28 | } -- cycle; 29 | } } 30 | 31 | \begin{document} 32 | 33 | \begin{tikzpicture} 34 | \duck[tshirt=dblue,cap=dred] 35 | \begin{pgfinterruptboundingbox} 36 | \path[pattern=myStars,pattern color=white] \duckpathtshirt; 37 | \fill[dred] \duckpathjacket; 38 | \stripes[rotate=95,color=white] 39 | \end{pgfinterruptboundingbox} 40 | \end{tikzpicture} 41 | 42 | \end{document} -------------------------------------------------------------------------------- /examples/YankeeDuck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/YankeeDuck_bg.png -------------------------------------------------------------------------------- /examples/Zebra.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zebra.pdf -------------------------------------------------------------------------------- /examples/Zebra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zebra.png -------------------------------------------------------------------------------- /examples/Zebra.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \path (0.1,0.1) rectangle (2.75,2.35); 9 | \begin{pgfinterruptboundingbox} 10 | \begin{scope}[yshift=-6] 11 | \clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4); 12 | \fill[black,rotate=-5] (0.28,2.26) ellipse (0.3 and 0.4); 13 | \end{scope} 14 | \duck[ 15 | body=black, 16 | stripes={\stripes[color=white,distance=0.25,width=0.125,rotate=0,initialx=0.06]}, 17 | horsetail=black, 18 | mohican=white 19 | ] 20 | \begin{scope}[yshift=-5,xshift=1] 21 | \clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4); 22 | \fill[black,rotate=-5] (1.06,2.2) ellipse (0.3 and 0.4); 23 | \end{scope} 24 | \end{pgfinterruptboundingbox} 25 | \end{tikzpicture} 26 | 27 | \end{document} -------------------------------------------------------------------------------- /examples/Zebra2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zebra2.pdf -------------------------------------------------------------------------------- /examples/Zebra2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zebra2.png -------------------------------------------------------------------------------- /examples/Zebra2.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \path (0.1,0.1) rectangle (2.75,2.35); 9 | \begin{pgfinterruptboundingbox} 10 | \begin{scope}[yshift=-6] 11 | \clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4); 12 | \fill[black,rotate=-5] (0.28,2.26) ellipse (0.3 and 0.4); 13 | \end{scope} 14 | \duck[ 15 | body=black, 16 | horsetail=black, 17 | mohican=white 18 | ] 19 | 20 | \begin{scope} 21 | \clip \duckpathjacket; 22 | \node at (1.1,0.7) {\scalebox{1}[-1]{\includegraphics[width=2cm]{zebra-938706_960_720}}}; 23 | \end{scope} 24 | 25 | \begin{scope}[yshift=-5,xshift=1] 26 | \clip[rotate=-5] (0.68,2.38) ellipse (0.3 and 0.4); 27 | \fill[black,rotate=-5] (1.06,2.2) ellipse (0.3 and 0.4); 28 | \end{scope} 29 | \end{pgfinterruptboundingbox} 30 | \end{tikzpicture} 31 | 32 | \end{document} -------------------------------------------------------------------------------- /examples/Zebra2_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zebra2_bg.png -------------------------------------------------------------------------------- /examples/Zebra_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zebra_bg.png -------------------------------------------------------------------------------- /examples/Zorro.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zorro.pdf -------------------------------------------------------------------------------- /examples/Zorro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zorro.png -------------------------------------------------------------------------------- /examples/Zorro.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | \usepackage{tikzducks} 4 | 5 | \begin{document} 6 | 7 | \begin{tikzpicture} 8 | \duck[ 9 | cape=black, 10 | hat=black, 11 | mask=black 12 | ] 13 | \fill[black,rotate=24] (0.1,0.21) rectangle (1.1,0.23) (1.2,0.22) ellipse (0.15 and 0.03) (1.08,0.22) ellipse (0.03 and 0.15); 14 | \end{tikzpicture} 15 | 16 | \end{document} -------------------------------------------------------------------------------- /examples/Zorro_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/Zorro_bg.png -------------------------------------------------------------------------------- /examples/lt3duck.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/lt3duck.pdf -------------------------------------------------------------------------------- /examples/lt3duck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/lt3duck.png -------------------------------------------------------------------------------- /examples/lt3duck.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/lt3duck.tex: -------------------------------------------------------------------------------- 1 | % !TeX program = arara -p generate_examples % | txs:///view-log | txs:///view-pdf "?am).pdf" 2 | \documentclass{standalone} 3 | 4 | \usepackage{xcolor} 5 | \usepackage{l3draw} 6 | 7 | \begin{document} 8 | 9 | \ExplSyntaxOn 10 | \draw_begin: 11 | 12 | \color_set:nnn {brown} {rgb} {0.75,0.50,0.25} 13 | \color_set:nnn {orange} {rgb} {1.00,0.50,0.00} 14 | 15 | % head 16 | \draw_path_ellipse:nnn 17 | { 0.9cm, 1.5cm } 18 | { 0.5cm , 0cm } 19 | { 0cm , 0.625cm } 20 | \color_fill:n { yellow!70!brown } 21 | \draw_path_use_clear:n { fill } 22 | 23 | % body 24 | \draw_path_moveto:n 25 | {0.513cm,1.145cm} 26 | \draw_path_curveto:nnn 27 | {0.267cm, 1.102cm} 28 | {-0.125cm,0.657cm} 29 | {0.289cm,0.261cm} 30 | \draw_path_curveto:nnn 31 | {0.704cm,-0.135cm} 32 | {2.863cm,0.130cm} 33 | {1.818cm,1.419cm} 34 | \draw_path_curveto:nnn 35 | {0.938cm, 0.946cm} 36 | {1.240cm,1.379cm} 37 | {0.513cm,1.145cm} 38 | \draw_path_close: 39 | \color_fill:n { yellow!70!brown } 40 | \draw_path_use_clear:n { fill } 41 | 42 | % bill 43 | \draw_path_moveto:n 44 | {0.406cm,1.472cm} 45 | \draw_path_curveto:nnn 46 | {0.643cm,1.530cm} 47 | {0.541cm,1.303cm} 48 | {0.910cm,1.370cm} 49 | \draw_path_curveto:nnn 50 | {0.083cm,0.850cm} 51 | {0.269cm,1.369cm} 52 | {0.406cm,1.472cm} 53 | \draw_path_close: 54 | \color_fill:n { orange!50!brown } 55 | \draw_path_use_clear:n { fill } 56 | 57 | % eyes 58 | % 59 | % Transformation: 60 | % x = x' cos a - y' sin a 61 | % y = x' sin a + y' cos a 62 | % 63 | % Half-axis 64 | % rx = (x' cos a , x' sin a) 65 | % ry = (-y' sin a, y' cos a) 66 | \draw_path_ellipse:nnn 67 | { 0.8206cm, 1.5822cm } 68 | { 0.0839cm, -0.0305cm } 69 | { 0.0428cm , 0.1175cm } 70 | \draw_path_ellipse:nnn 71 | { 0.5387cm, 1.6556cm } 72 | { 0.0739cm, -0.0269cm } 73 | { 0.0391cm, 0.1074cm } 74 | \color_fill:n { yellow!15!white } 75 | \draw_path_use_clear:n { fill } 76 | 77 | 78 | % pupils 79 | \draw_path_ellipse:nnn 80 | {0.84542cm, 1.56258cm } 81 | {0.033547cm, -0.0122101cm } 82 | {0.0244202cm, 0.0670941cm } 83 | \draw_path_ellipse:nnn 84 | {0.563504cm, 1.63593cm } 85 | {0.0268752cm, -0.00978178cm } 86 | {0.0219919cm, 0.0604222cm } 87 | \color_fill:n { black } 88 | \draw_path_use_clear:n { fill } 89 | 90 | \draw_end: 91 | \ExplSyntaxOff 92 | 93 | \end{document} -------------------------------------------------------------------------------- /examples/lt3duck_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samcarter/tikzducks/7688c43d2236afc78933ae5d214a58fa5ae6468a/examples/lt3duck_bg.png -------------------------------------------------------------------------------- /tikzlibraryducks.code.tex: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % 3 | % TikZ library for the tikzducks package 4 | % A package to bring rubber ducks into tikz 5 | % Maintained by samcarter 6 | % 7 | % Project repository and bug tracker: 8 | % https://github.com/samcarter/tikzducks 9 | % 10 | % Released under the LaTeX Project Public License v1.3c or later 11 | % See https://www.latex-project.org/lppl.txt 12 | % 13 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14 | \usepackage{tikzducks} 15 | 16 | % This is all that is needed ... 17 | \tikzset{ 18 | duck/.pic={% 19 | \duck 20 | }, 21 | duck/.search also={,/tikz,/pgf}, 22 | } 23 | 24 | 25 | --------------------------------------------------------------------------------