Using Magick I managed to create a simple rounded rectangle filled with a solid color and having a shadow:
magick montage -background none -size 300x200 xc:none -fill green -draw "roundRectangle 0,0 300,200 8,8" -shadow -geometry +10+10
The result is the following:
Is there an easy way to slighty modify the command in order to have a gradient fill (for instance from green to red) instead of the solid green, mantaining all other aspects (rounded corners and shadow) ?
The ideal result is the following:


