This commit is contained in:
Ashley Wulber 2026-02-03 16:45:44 -05:00
parent a489a6b790
commit e2918e0de9
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
19 changed files with 9291 additions and 60 deletions

View file

@ -24,6 +24,18 @@ impl Background {
}
}
impl From<palette::Srgba<f32>> for Background {
fn from(color: palette::Srgba<f32>) -> Self {
Background::Color(Color::from(color))
}
}
impl From<palette::Srgba<u8>> for Background {
fn from(color: palette::Srgba<u8>) -> Self {
Background::Color(Color::from(color))
}
}
impl From<Color> for Background {
fn from(color: Color) -> Self {
Background::Color(color)