I still think the problem is in the code itself, it first generates on the outer layer, then goes into the internal ones. , because in Inskсape I did not find this function, and the color of the generation does not converge in Inskcape generates red blue and green, but it does not cut out the color (not in order) but immediately from the outer one and goes into the groove. Just need to invert in the code, and where and how I do not know Python (