There are various ways to do this. I assume you want a constant colour from the centre to the edge.
Suppose you want a red-lime-red gradient (lime = pure green), spanning 90 degrees in total, starting 10 [EDIT: I mean 20] degrees clockwise from north. Windows BAT syntax:
Code: Select all
convert ^
-size 200x300 ^
gradient:red-lime ^
-rotate -90 ^
( +clone -flop ) +append ^
-virtual-pixel None ^
+distort Polar 200,0,300,200,20,110 ^
+repage ^
-flip ^
arccol.png

Your "don't care" area is transparent black. Change the "-virtual-pixel" setting if you want. Remove it entirely to get the colour all over the rectangle, with red in the "don't care" area.
This gives a 402x402 output. Scale the 200 and 300 numbers, in the same ratio, for different sizes.