From 755405a094487af72d5029c56fb3bb1b1bf98f7a Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 17 Jul 2026 03:07:53 +0200 Subject: refactor: fix creation of yellow color constant --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e6ba5b6..51d50d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ use engine::camera::{ Camera, Controllable as ControllableCamera, }; -use engine::color::Color; +use engine::color::{Color, Rgb}; use engine::data_types::dimens::Dimens3; use engine::ecs::actions::Actions; use engine::ecs::error::Context as _; @@ -58,11 +58,11 @@ use tracing_subscriber::layer::SubscriberExt; use tracing_subscriber::util::SubscriberInitExt; use tracing_subscriber::EnvFilter; -const YELLOW: Color = Color { - red: 0.988235294118, - green: 0.941176470588, - blue: 0.0274509803922, -}; +const YELLOW: Color = Color::Rgb(Rgb { + r: 0.988235294118, + g: 0.941176470588, + b: 0.0274509803922, +}); const RESOURCE_DIR: &str = "res"; -- cgit v1.2.3-18-g5258