Milo
\documentclass[tikz]{standalone}
\usetikzlibrary{shadings}
\begin{document}
\begin{tikzpicture}
\newcommand{\fillCol}{white}
\pgfmathsetmacro{\C}{1}
\pgfmathsetmacro{\D}{\C/2}
\pgfmathsetmacro{\E}{\D/2}
\shade[upper left=red,upper right=green,
lower left=blue,lower right=yellow] (0,0) rectangle (4*\C,4*\C);
\foreach \X/\Y/\R in {0/0/0,4*\C/0/90,4*\C/4*\C/180,0/4*\C/270}{
\begin{scope}[\fillCol,xshift=\X cm,yshift=\Y cm,rotate=\R]
\fill (0,0)--++(\C,\C)--++(0,\C)--cycle (0,\C)--++(\C,\C)--++(-\C,\D)--cycle (\C,2*\C)--++(0,\C)--++(-\C,0)--cycle;
\end{scope}}
\begin{scope}[xshift=\C cm,yshift=\C cm]
\foreach \X/\Y in {0/0,0/\C,\C/\C,\C/0}{
\begin{scope}[\fillCol,even odd rule,xshift=\X cm,yshift=\Y cm]
\fill (\D,0)--++(\D,\D)--++(-\D,\D)--++(-\D,-\D)--cycle (\D,\E)--++(\E,\E)--++(-\E,\E)--++(-\E,-\E)--cycle;
\end{scope}}
\end{scope}
\end{tikzpicture}
\end{document}
10
answers
0
questions
~6k
people reached
-
Member for 3 years, 11 months
-
5 profile views
-
Last seen Jan 16 at 17:09
Communities (3)
Top network posts
- 77 Does a symbol for glasses exist?
- 70 Circle of fifths diagram with printed music in LaTeX
- 47 Welcoming 2019 Pi day: How to draw the letter π?
- 43 How to create nice-looking nuclei in TikZ?
- 36 IEEEtran - How to include ORCID in TeX/PDF with PdfLatex
- 26 How to draw $y^4 - y^2 = x$?
- 18 How to apply 3D transform to arrows in TikZ
- View more network posts →
Top tags (4)
Score
121
Posts
10
Posts %
100
Badges (18)
Gold
1
Rarest
-
Aug 10 '18
Silver
4
Rarest
-
Aug 12 '18
Bronze
13
Rarest
-
Aug 9 '18
-
Aug 10 '18
-
Aug 12 '18