This commit is contained in:
Nathan Sobo 2023-07-27 18:23:23 -06:00
parent 2ef19e48bc
commit 480401d65d
12 changed files with 242 additions and 250 deletions

View file

@ -18,7 +18,7 @@ use serde_json::json;
pub struct Color(#[schemars(with = "String")] ColorU);
pub fn color(rgba: u32) -> Color {
color(rgba)
Color::from_u32(rgba)
}
pub fn rgb(r: f32, g: f32, b: f32) -> Color {