set Fill
Sets the fill to a two-color gradient.
Only the rect and geometry families take one: on a round shape the glasses' two-color fill mode interferes with the anti-aliasing, so M2Ellipse, M2Arc and M2Segment have no such overload - use com.everysight.mav2.sdk.uikit.data.M2GradientFade there.
Return
this instance, for call chaining.
Parameters
gradient Fill
The M2GradientLinear describing the transition.