TeX - LaTeX Asked on December 23, 2020
How can I have a filled area like this:
With a curvy line.
In the sense of: it continues here
documentclass[margin=5pt, tikz]{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}[]
filldraw[fill=cyan] (0,0) -- (250:2) arc (250:250+44:2) -- (0,0);
end{tikzpicture}
end{document}
I solved it with decorate
documentclass[margin=5pt, tikz]{standalone}
usepackage{tikz}
usetikzlibrary {decorations.pathmorphing}
begin{document}
begin{tikzpicture}[
curvy/.style={
rounded corners=1pt,
% 1. version
fill, decorate, decoration={zigzag, segment length=6mm, amplitude=0.75mm},
% 2. version
%fill, decorate, decoration={random steps, segment length=4mm, amplitude=3mm},
},
]
filldraw[fill=cyan] (0,0) to (250:2) arc (250:250+44:2) decorate[curvy] {--(0,0)};
end{tikzpicture}
end{document}
Answered by cis on December 23, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP