pub fn new(start: DVec2, start_color: Color, end: DVec2, end_color: Color, transform: DAffine2, uuid: u64) -> Self {
		Gradient {
			start,
			end,
			positions: vec![(0., Some(start_color)), (1., Some(end_color))],
			transform,
			uuid,
		}
	}
/// Constructs a new gradient with the colors at 0 and 1 specified.
Constructs a new gradient with the colors at 0 and 1 specified.
Constructs a new gradient with the colors at 0 and 1 specified .
pub fn new(start: DVec2, start_color: Color, end: DVec2, end_color: Color, transform: DAffine2, uuid: u64) -> Self {
		Gradient {
			start,
			end,
			positions: vec![(0., Some(start_color)), (1., Some(end_color))],
			transform,
			uuid,
		}
	}
pub fn new ( start : DVec2 , start_color : Color , end : DVec2 , end_color : Color , transform : DAffine2 , uuid : u64 ) -> Self { Gradient { start , end , positions : vec ! [ ( 0. Some ( start_color ) ) ( 1. Some ( end_color ) ) ] , transform , uuid , } }
Constructs a new gradient with the colors at 0 and 1 specified.
Constructs a new gradient with the colors at 0 and 1 specified .
start
DVec2
start_color
Color
end
DVec2
end_color
Color
transform
DAffine2
uuid
u64
start
DVec2
start_color
Color
end
DVec2
end_color
Color
transform
DAffine2
uuid
u64