Creates a deep clone of a given GradientParameters object.
This function copies all defined properties from the input gradient,
including shallow copies of the stop0 through stop4 properties (if present),
ensuring that the returned object is a new instance with the same values.
Creates a deep clone of a given
GradientParametersobject.This function copies all defined properties from the input gradient, including shallow copies of the
stop0throughstop4properties (if present), ensuring that the returned object is a new instance with the same values.