pub fn linear_gradient_style(
colors: &[Color],
start: (f64, f64),
end: (f64, f64),
) -> (Vec<u8>, *const c_void, *const c_void)Expand description
Build a LinearGradient value, with its metadata and ShapeStyle witness.
What Shape::fill_style wants: .fill(.linearGradient(...)) is the same
call as .fill(Color.red) with a different style, so the style is passed as
bytes rather than as one of a fixed set.