[][src]Module amethyst_rendy::serde_shim::srgba

Srgba serialization shim.

#[derive(Serialize, Deserialize)]
struct MyType(
    #[serde(with="amethyst_rendy::serde_shim::srgba")]
    pub palette::Srgba
);

Functions

deserialize

Deserialize Srgba type as tuple struct with four floats

serialize

Serialize Srgba type as tuple struct with four floats