Skip to main content

color_delta

Function color_delta 

Source
pub fn color_delta(px1: Rgba, px2: Rgba, y_only: bool) -> f64
Expand description

Calculate perceptual color delta between two RGBA pixels using YIQ color space. Returns a value in [0.0, 1.0] representing the magnitude of difference. Based on Kotsarenko & Ramos (2010) as adapted by pixelmatch.