I'm trying to create (with overleaf) a two-color fill pattern with continuous diagonal lines. I have copied most of the code from here (many thanks to the stackexchange community). However, my result looks like this:

\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}[
Pattern/.style = {pattern=north east hatch,
pattern color=yellow,
hatch distance=10pt,
hatch thickness=4pt},
]
\coordinate (o) at (0,0);
\makeatletter
\tikzset{
hatch distance/.store in=\hatchdistance,
hatch distance=5pt,
hatch thickness/.store in=\hatchthickness,
hatch thickness=5pt
}
\pgfdeclarepatternformonly[\hatchdistance,\hatchthickness]{north east hatch}% name
{\pgfqpoint{-1pt}{-1pt}}% below left
{\pgfqpoint{\hatchdistance}{\hatchdistance}}% above right
{\pgfpoint{\hatchdistance-1pt}{\hatchdistance-1pt}}%
{
\pgfsetcolor{\tikz@pattern@color}
\pgfsetlinewidth{\hatchthickness}
\pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
\pgfpathlineto{\pgfqpoint{\hatchdistance}{\hatchdistance}}
\pgfusepath{stroke}
}
\makeatother
\draw[preaction={fill=green}, Pattern] (o)
-- ++(1,0)
-- ++(0,-1)
-- ++(-1,0)
--cycle;
\end{tikzpicture}
\end{document}
There are some bumps on the lines. What's going wrong with my code? How can I remove this bumps. Thanks in advance for any help!
Update 19:03h: I used Acrobat Reader, SumatraPDF, and Firefox for viewing, however, similar artifacts occur in all cases.
