pub fn render(&self, svg_defs: &mut String, multiplied_transform: DAffine2, bounds: [DVec2; 2], transformed_bounds: [DVec2; 2]) -> String {
		match self {
			Self::None => r#" fill="none""#.to_string(),
			Self::Solid(color) => format!(r##" fill="#{}"{}"##, color.rgb_hex(), format_opacity("fill", color.a())),
			Self::LinearGradient(gradient) => {
				gradient.render_defs(svg_defs, multiplied_transform, bounds, transformed_bounds);
				format!(r##" fill="url('#{}')""##, gradient.uuid)
			}
		}
	}
/// Renders the fill, adding necessary defs.
Renders the fill, adding necessary defs.
Renders the fill adding necessary defs .
pub fn render(&self, svg_defs: &mut String, multiplied_transform: DAffine2, bounds: [DVec2; 2], transformed_bounds: [DVec2; 2]) -> String {
		match self {
			Self::None => r#" fill="none""#.to_string(),
			Self::Solid(color) => format!(r##" fill="#{}"{}"##, color.rgb_hex(), format_opacity("fill", color.a())),
			Self::LinearGradient(gradient) => {
				gradient.render_defs(svg_defs, multiplied_transform, bounds, transformed_bounds);
				format!(r##" fill="url('#{}')""##, gradient.uuid)
			}
		}
	}
pub fn render ( & self , svg_defs : & mut String , multiplied_transform : DAffine2 , bounds : [ DVec2 ; 2 ] , transformed_bounds : [ DVec2 ; 2 ] ) -> String { match self { Self :: None => r#" fill="none""# . to_string ( ) , Self :: Solid ( color ) => format ! ( r##" fill="#{}"{}"## color rgb_hex ( ) format_opacity ( " " color a ( ) ) ) , Self :: LinearGradient ( gradient ) => { gradient . render_defs ( svg_defs , multiplied_transform , bounds , transformed_bounds ) ; format ! ( r##" fill="url('#{}')""## gradient uuid ) } } }
Renders the fill, adding necessary defs.
Renders the fill adding necessary defs .
&self
svg_defs
&mut String
multiplied_transform
DAffine2
bounds
[DVec2; 2]
transformed_bounds
[DVec2; 2]
&self
svg_defs
&mut String
multiplied_transform
DAffine2
bounds
[DVec2; 2]
transformed_bounds
[DVec2; 2]