SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

$\LaTeX$ V: TikZ
Problemas resolvemos na hora!
Milagres demoram mais um pouco...
Provérbio dinamarquês
< Plot | Clipping | 3D >

Clipping

  1. \begin{scope}
       \clip (0,0) rectangle (4,8);
       %Start drawing
    \end{scope}
TiKZ Listing: Fig.tikz.tex. PDF   PNG   SVG   ZIP*  
\begin{tikzpicture}

    %color one half of a unit circle
    \begin{scope}
       \clip (0,0) circle (1cm);
       \fill[black] (0cm,1cm) rectangle (-1cm, -1cm);
    \end{scope}

    %fill heads
    \fill[white] (0,0.5) circle (0.5cm);
    \fill[black] (0,-0.5) circle (0.5cm);

    %fill eyes
    \fill[black] (0,0.5) circle (0.1cm);
    \fill[white] (0,-0.5) circle (0.1cm);

    %outer circle
    \draw (0,0) circle (1cm);

\end{tikzpicture}
< Plot | Clipping | 3D >
Messages:
0 secs.