Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[margin=3.14mm]{standalone}
- usepackage{tikz}
- usepackage{contour}
- contourlength{1pt}
- tikzset{mynode/.style args={#1 | #2}{midway,%
- node contents={contour{white}{textcolor{#1}{#2}}},%
- font=small,inner sep=0pt}}
- usetikzlibrary{calc,patterns}
- begin{document}
- begin{tikzpicture}
- draw[pattern=north west lines,pattern color=blue] (0,0) rectangle (3,1)
- node[mynode=blue |Blue];
- draw[pattern=vertical lines] (2,0) rectangle (5,1)
- node[mynode=black | Black];
- draw[pattern=horizontal lines,pattern color=yellow]
- (0:2cm) -- (0:3cm)
- arc (0:105:3cm) -- (105:2cm) node[mynode=yellow |Hello]
- arc (105:0:2cm) -- cycle;
- draw[pattern=north east lines,pattern color=red] (1,0) -- (0,0)
- arc (180:120:2cm) -- (120:1cm) node[mynode=red| red]
- arc (120:180:1cm) -- cycle;
- end{tikzpicture}
- end{document}
Add Comment
Please, Sign In to add comment