When I run the following code, there is a "dimension too large" error:
\documentclass[tikz]{standalone}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{hobby}
\definecolor{col1}{RGB}{24,127,127}
\definecolor{col2}{RGB}{240,240,240}
\begin{document}
\begin{tikzpicture}[use Hobby shortcut]
\clip (0,0) rectangle (1,1);
\path[yshift=10,
postaction={
decorate,
decoration={
markings,
mark=between positions 0 and \pgfdecoratedpathlength step .01cm with {
\pgfmathsetmacro\myval{multiply(divide(
\pgfkeysvalueof{/pgf/decoration/mark info/distance from start}, \pgfdecoratedpathlength),100)};
\pgfsetfillcolor{col2!\myval!col1};
\pgfpathcircle{\pgfpointorigin}{1.5};
\pgfusepath{fill};}
}}]
([closed].075,.2)..(.2,.4)..(.8,0)..(.925,.2)..(.8,.4)..(.2,0);
\end{tikzpicture}
\end{document}
I did a little search on this problem, and it turns out it is neither caused by length>16384pt nor incorrect shift. The error sometimes disappear when the order of the points at last line changes, but I don't remember the exact order, and I think it is not very relevant to this problem.
How should I fix this problem?

/pgf/fpu/install only={reciprocal}instead ofuse fpu reciprocal. – Henri Menke Oct 31 '20 at 15:40fpu. – Oct 31 '20 at 23:03Package pgfkeys: Choice 'orthogonal' unknown in choice key '/pgf/fpu'. I am going to ignore this key.– Jinwen Nov 01 '20 at 01:04