Re: Disegnare con LaTeX

#86550
Liverpool
Partecipante
    Up
    0
    Down
    ::


    La parola magica era [tt]even odd rule[/tt]

    `\documentclass{standalone}
    \usepackage{tikz}
    \newcommand*{\xMin}{0}%
    \newcommand*{\xMax}{16}%
    \newcommand*{\yMin}{0}%
    \newcommand*{\yMax}{16}%

    \begin{document}
    \begin{tikzpicture} [scale=0.5]
    \draw [very thin] (\xMin,\yMin) grid (\xMax,\yMax);
    \foreach \r/\col in {0cm/red, 2cm/green, 4cm/blue, 6cm/orange}
    \fill [draw, fill=\col, fill opacity=0.5, even odd rule] (8,8) circle (\r) circle (\r+2cm);
    \end{tikzpicture}
    \end{document}
    `

    [attachment=734]prova_2013-06-12.png[/attachment]

    Osservazione: all’inizio si tende ad usare [tt]clip[/tt] molto più spesso di quanto ce ne effettivamente sia bisogno, perciò chiediti se c’è un’altra strada.

    Attachments:
    You must be logged in to view attached files.

    Go to top