Set gradient path type
Refer to the following example code to see how to set different path type of gradient fill.