TransWikia.com

TikZ: Filled area with curvy end line

TeX - LaTeX Asked on December 23, 2020

How can I have a filled area like this:

enter image description here

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}

enter image description here

One Answer

I solved it with decorate

enter image description here

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

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP