Skip to content

Commit

Permalink
Address inaccurate comments about YIQ (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
jihchi committed Jan 21, 2024
1 parent 0767ca9 commit 56c4792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/yiq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 56c4792

Please sign in to comment.