this way the colors looks randomized and I’m not sure of what ${-RGB} means.
how can I get the colors at posx,posy of my input images and pass them to the -arrow.
this is my first script so I apologize if it’s trivial but I tried a lot of things already …
luc
From what I see in your code, it looks like you could benefit from commands -display_quiver or -quiver that manage the drawing of field of colores arrows.
I wouldn’t recommend doing your own XY loop with two nested -repeat...-done loops, as if the number of loop iterations is high, the script will be really slow. You may actually want to take a look to the code of command -quiver , which uses the G’MIC math parser (and it’s JIT compiler) to speed up the drawing process : Code of G'MIC -quiver command - Pastebin.com
The code of the -quiver is quite simple to understand, and effective as well :).