增加Swatch Scheme主题的生成和导出。
This commit is contained in:
		@@ -70,6 +70,13 @@ macro_rules! parse_to_oklch {
 | 
			
		||||
                .into_format::<f32>(),
 | 
			
		||||
        )
 | 
			
		||||
    };
 | 
			
		||||
    ($origin: expr) => {
 | 
			
		||||
        palette::Oklch::from_color(
 | 
			
		||||
            palette::Srgb::from_str($origin)
 | 
			
		||||
                .map_err(|_| crate::errors::ColorError::UnrecogniazedRGB($origin.to_string()))?
 | 
			
		||||
                .into_format::<f32>(),
 | 
			
		||||
        )
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[macro_export]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user