summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-07-17 03:07:53 +0200
committerHampusM <hampus@hampusmat.com>2026-07-17 03:07:53 +0200
commit755405a094487af72d5029c56fb3bb1b1bf98f7a (patch)
tree44f79d774449b478906b9670e4c656056d517522 /src/main.rs
parent65e24308babb2ed4f33fb6f1d7b531df676bd70d (diff)
refactor: fix creation of yellow color constant
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 6 insertions, 6 deletions
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<f32> = Color {
- red: 0.988235294118,
- green: 0.941176470588,
- blue: 0.0274509803922,
-};
+const YELLOW: Color<f32> = Color::Rgb(Rgb {
+ r: 0.988235294118,
+ g: 0.941176470588,
+ b: 0.0274509803922,
+});
const RESOURCE_DIR: &str = "res";