Gimp.ColorProfile.prototype.is_gray

function is_gray(): Boolean {
    // Gjs wrapper for gimp_color_profile_is_gray()
}
  

Since 2.10

Returns

true if the profile's color space is grayscale, false otherwise.