pub fn color(&self) -> Color {
		match self {
			Self::None => Color::BLACK,
			Self::Solid(color) => *color,
			// TODO: Should correctly sample the gradient
			Self::LinearGradient(Gradient { positions, .. }) => positions[0].1.unwrap_or(Color::BLACK),
		}
	}
/// Evaluate the color at some point on the fill. Doesn't currently work for LinearGradient.
Evaluate the color at some point on the fill. Doesn't currently work for LinearGradient.
Evaluate the color at some point on the fill . Doesn ' t currently work for LinearGradient .
pub fn color(&self) -> Color {
		match self {
			Self::None => Color::BLACK,
			Self::Solid(color) => *color,
			// TODO: Should correctly sample the gradient
			Self::LinearGradient(Gradient { positions, .. }) => positions[0].1.unwrap_or(Color::BLACK),
		}
	}
pub fn color ( & self ) -> Color { match self { Self :: None => Color :: BLACK , Self :: Solid ( color ) => * color , // TODO: Should correctly sample the gradient Self :: LinearGradient ( Gradient { positions , .. } ) => positions [ 0 ] . 1 . unwrap_or ( Color :: BLACK ) , } }
Evaluate the color at some point on the fill.
Evaluate the color at some point on the fill .
&self
&self