From 0bdd2c317dd07ed512d3e4dbcc807ea2c4698208 Mon Sep 17 00:00:00 2001 From: jihchi Date: Sun, 21 Jan 2024 10:10:29 +0100 Subject: [PATCH] Address inaccurate comments about YIQ --- src/yiq.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yiq.rs b/src/yiq.rs index 1cccc00..cd74a7b 100644 --- a/src/yiq.rs +++ b/src/yiq.rs @@ -2,9 +2,9 @@ use image::Pixel; #[derive(Debug, PartialEq)] pub struct Yiq { - y: f32, // luminance, in range [0, 1] - i: f32, // hue of color, in range ~ [-0.5, 0.5] - q: f32, // saturation of color, in range ~ [-0.5, 0.5] + y: f32, // luminance + i: f32, // hue of color + q: f32, // saturation of color } impl Yiq {