I would like to read continous color gradient from the image using the path ( white line on the image).
I know that I can read palette but I want to read all values in a specific order to create function from them. I can do it manually in gimp by color picker but it would be faster to mark a path and read all values at once. Is it possible or should I write a script to do it?
================= edit =========================
this is confirmation that Wolff's answer is good. I have made a screen copy of original program ( below). So the gradient has 7 segments from magenta, black, red, yellow, green, cyan, blue, to magenta[
and here is the result of my c/gnuplot program