Drawing a shape made up of circles in latex (Part 2)

The code I used to create a shape like this in latex is shown below.


\newcommand{\circledtwo}[4]{
%takes 4 inputs, #1 length, #2 width, # length label # width label
\begin{tikzpicture}
    \filldraw [thick,fill=red,fill opacity=0.3](0,0) arc (-180:-90:#1) -- (#1,0)arc (-90:0:#2)--(#1,#2) arc (0:90:#1)--(0,#2) arc (90:180:#2)-- (0,0);
    \draw [dashed,to-to](0,0)--(0,#2) node [midway,above,sloped]{#4};
        \draw [dashed,to-to](0,0)--(#1,0) node [midway,above,sloped]{#3};
\end{tikzpicture}
}
Share

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.