I want to make something like this
How can I do it?
\documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{patterns.meta}
\begin{document}
\begin{tikzpicture}
\fill[orange!50!yellow, postaction={pattern={Lines[angle=-45, distance=2mm, line width=1mm]}}] circle[radius=1cm];
\end{tikzpicture}
\end{document}
Edit: The stripes are exact. Any bleed through of color is because of viewer artefacts. It is dependent on the viewer used and dependent on zoom level. It is impossible to totally avoid when there are three colors involved - black, orange and background white.
One possibility is to make orange stripes only a little wider than the black stripes, instead of a full orange circle, so the effect is only at a small distance.
\documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{patterns.meta}
\begin{document}
\begin{tikzpicture}
\fill[pattern={Lines[angle=-45, distance=2mm, line width=1.1mm, xshift=1.4mm]}, pattern color=orange!50!yellow] circle[radius=1cm];
\fill[pattern={Lines[angle=-45, distance=2mm, line width=1mm]}] circle[radius=1cm];
\end{tikzpicture}
\end{document}
\fill[blue, pattern color=red, …. The \fill will default to black in this case. With red!50!blue you just specify a mixed color.
– Qrrbrbirlbel
Oct 08 '22 at 21:28
You need not Tikz, if you are using OpTeX. You can do something like this:
\hbox{\clipincircle 5mm 5mm 10mm 10mm{%
\pdfsave\pdfrotate{-45}%
\rlap{\kern-5mm
\vbox{\fornum 1..10\do {\hrule width5cm height2pt {\Yellow \hrule height2pt}}}}%
\pdfrestore
}}
\bye