A recurrent question on the forum is... How to draw a decorated path without a straight segment at the end?
I'm interested in drawing a general path, decorated with a coil and a snake (with an entire number of wave length). I found an interesting solution for snake decoration HERE, however, no clue for coil decoration is given.
How could a general path be decorated with a coil? constrained to have an entire number of wave length.
It has been pointed out by percusse different problems in the definition of my question. So, I'll be less aggressive...
Assume that we have a sufficiently smooth path (without vertices or abrupt changes). Additionally, we want the end-points of the path to be centred on the amplitude of the coil. If possible, instead of giving a "wave length" for the coil, we'd like to control the number of turns.
How would such a construction be defined?