Just use a regular polygon node and add a path picture. There is a option for nontrivial greatest common divisors and the case in which the fraction equals 1/2.
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{shapes.geometric}
\newif\ifgcd
\begin{document}
\begin{tikzpicture}[ngon fraction/.style args={#1/#2}{regular polygon,
minimum size=\pgfkeysvalueof{/tikz/ngon size},
regular polygon sides=#2,draw,path picture={\ifodd#2
\pgfmathsetmacro{\mystartangle}{90-360/#2}
\else
\pgfmathsetmacro{\mystartangle}{0}
\fi
\pgfmathtruncatemacro{\itest}{ifthenelse(#2/#1==2,1,0)}
\ifnum\itest=1
\foreach \X in {0,2,...,#2}
{\draw[fill=gray!20] (\mystartangle+\X*360/#2:\pgfkeysvalueof{/tikz/ngon size})
-- (0,0) -- (\mystartangle+\X*360/#2+360/#2:\pgfkeysvalueof{/tikz/ngon size});}
\else
\fill[gray!20] (0,0) -- (\mystartangle:\pgfkeysvalueof{/tikz/ngon size}) arc[start angle=\mystartangle,end
angle={\mystartangle+#1*360/#2},radius=\pgfkeysvalueof{/tikz/ngon size}];
\ifgcd
\pgfmathtruncatemacro{\mygcd}{gcd(#1,#2)}
\pgfmathtruncatemacro{\myupper}{#2/\mygcd}
\foreach \X in {1,...,\myupper}
{\draw (0,0) -- (\mystartangle+\mygcd*\X*360/#2:\pgfkeysvalueof{/tikz/ngon size});}
\else
\foreach \X in {1,...,#2}
{\draw (0,0) -- (\mystartangle+\X*360/#2:\pgfkeysvalueof{/tikz/ngon size});}
\fi
\fi
}},gcd/.is if=gcd,apothem/.style={shape border rotate=180/#1},
ngon size/.initial=2cm
]
\path (0,0) node[ngon fraction=1/4,]{}
(3,0) node[ngon fraction=1/4,apothem=4]{}
(0,-3) node[ngon fraction=4/5,rotate=108]{}
(3,-3) node[ngon fraction=4/5,rotate=108,apothem=5]{}
(0,-6) node[ngon fraction=4/6,rotate=150]{}
(3,-6) node[gcd,ngon fraction=4/6,rotate=150,apothem=6]{}
(0,-9) node[ngon fraction=4/8,shape border rotate=360/16,rotate=360/16]{}
(3,-9) node[ngon fraction=4/8]{}
;
\end{tikzpicture}
\end{document}

ngon fraction/.style=...and everything up to\pathin the preamble using\tikzset{}?Also, is it correct that I should use
– EthanAlvaree Jan 15 '20 at 07:20\pic{circle fraction={1/4}};to insert circle fractions, and use\node[ngon fraction=1/4]{};to insert ngon fractions? I don't think\nodeworks for circle fractions, does it? Thanks!pics, which I really love and use a lot, but for the regular polygons it so happens that the regular polygons already exist as nodes, and they come with theshape border rotatekey, which helps a lot. So, yes, for these you need to use node. – Jan 15 '20 at 07:25picvia\tikzset{pics/ngon fraction/.style args={#1/#2}{code={\coordinate[ngon fraction=#1/#2];}}}and then use\path (6,0) pic{ngon fraction=1/4};, say. Whether it is better to use\tikzsetor the preamble of atikzpicturedepends on your use case. If you use them in several pictures, use\tikzset. The problem with that is if someone else is defining a style of the same name, and you copy their code to your document, then you may overwrite the definitions. – Jan 15 '20 at 07:27