Skip to content

Instantly share code, notes, and snippets.

@KelSolaar
Last active July 5, 2025 16:25
Show Gist options
  • Save KelSolaar/4a6ebe9ec3d389f0934b154fec8df51d to your computer and use it in GitHub Desktop.
Save KelSolaar/4a6ebe9ec3d389f0934b154fec8df51d to your computer and use it in GitHub Desktop.
Colour 0.4.7 - Current Changes

Colour 0.4.7 - Alpha Milestone

Features

colour.models

The following RGB colourspaces were added:

  • colour.models.RGB_COLOURSPACE_LIN_REC709_SCENE
  • colour.models.RGB_COLOURSPACE_LIN_P3D65_SCENE
  • colour.models.RGB_COLOURSPACE_LIN_REC2020_SCENE
  • colour.models.RGB_COLOURSPACE_LIN_ADOBERGB_SCENE
  • colour.models.RGB_COLOURSPACE_LIN_CIEXYZD65_SCENE
  • colour.models.RGB_COLOURSPACE_SRGB_REC709_SCENE
  • colour.models.RGB_COLOURSPACE_G22_REC709_SCENE
  • colour.models.RGB_COLOURSPACE_G18_REC709_SCENE
  • colour.models.RGB_COLOURSPACE_SRGB_AP1_SCENE
  • colour.models.RGB_COLOURSPACE_G22_AP1_SCENE
  • colour.models.RGB_COLOURSPACE_SRGB_P3D65_SCENE
  • colour.models.RGB_COLOURSPACE_G22_ADOBERGB_SCENE

The following aliases were added:

  • lin_ap1_scene

  • lin_ap0_scene

  • lin_rec709_scene

  • lin_p3d65_scene

  • lin_rec2020_scene

  • lin_adobergb_scene

  • lin_ciexyzd65_scene

  • srgb_rec709_scene

  • g22_rec709_scene

  • g18_rec709_scene

  • srgb_ap1_scene

  • g22_ap1_scene

  • srgb_p3d65_scene

  • g22_adobergb_scene

  • Implement support for Filmlight E-Gamut 2 RGB colourspace with colour.models.RGB_COLOURSPACE_FILMLIGHT_E_GAMUT_2 attribute. (#1323, @nick-shaw)

  • Implement support for Fujifilm F-Gamut C RGB colourspace with colour.models.RGB_COLOURSPACE_F_GAMUT_C attribute. (#1317, @KelSolaar)

colour.quality

  • Implement support for Spectral radiance factors of test-colour sample #15 of the Japanese skin complexion, 5nm wavelength steps. (#1337, @cmuellner, @KelSolaar)

Fixes

colour.utilities

  • Ensure that colour.utilities.tsplit definition returns a contiguous copy of the input array. (9ba813d7147024ac41dd4c9ad6e98172a5143d6f, @KelSolaar)

Changes

colour.algebra

  • The colour.algebra.sdiv_mode context manager and colour.algebra.sdiv definition and other related objects now support two new modes:
    • Replace With Epsilon: Zero-division is avoided by replacing zero denominators with the machine epsilon value from :attr:colour.constants.EPSILON.
    • Warning Replace With Epsilon: Zero-division is avoided by replacing zero denominators with the machine epsilon value from :attr:colour.constants.EPSILON with a warning.

colour.colorimetry

  • The colour.SpectralDistribution.interpolate definition has been updated to handle fractional wavelengths better. (#1328, @KelSolaar)
    • Numerical differences are expected if any of the following definitions were used with fractional wavelengths:
      • colour.SpectralDistribution.interpolate
      • colour.SpectralDistribution.align
      • colour.MultiSpectralDistributions.interpolate
      • colour.MultiSpectralDistributions.align
      • colour.colorimetry.reshape_sd
      • colour.colorimetry.reshape_msds

colour.models

Object Name Author
colour.IPT_hue_angle colour.models.IPT_hue_angle @KelSolaar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment