Gimp.RGB.prototype.distance

function distance(rgb2: Gimp.RGB): Number(gdouble) {
    // Gjs wrapper for gimp_rgb_distance()
}
  
rgb2
Returns