From 56c4792eea5a97c4fb7afce08154739cdf5391d8 Mon Sep 17 00:00:00 2001 From: Jihchi Lee Date: Sun, 21 Jan 2024 11:19:48 +0200 Subject: [PATCH] Address inaccurate comments about YIQ (#29) --- 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 {