WIP
This commit is contained in:
parent
6f6096238d
commit
1dfde8eab5
15 changed files with 647 additions and 106 deletions
|
@ -141,6 +141,12 @@ impl<'de> Deserialize<'de> for Color {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<u32> for Color {
|
||||
fn from(value: u32) -> Self {
|
||||
Self(ColorU::from_u32(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl ToJson for Color {
|
||||
fn to_json(&self) -> serde_json::Value {
|
||||
json!(format!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue