Ctrl + Click and drag to draw a gradient, click a color to set it as the first and right click a color to set it as the second.
These are versions of this script where the code was updated. Show all versions.