Skip to content

Commit

Permalink
Change "colour.colorimetry.lightness_1976" definition signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Sep 3, 2014
1 parent 9a7ecad commit fc9b136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions colour/colorimetry/lightness.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def lightness_wyszecki1964(Y, **kwargs):
return W


def lightness_1976(Y, Yn=100):
def lightness_1976(Y, Y_n=100):
"""
Returns the *Lightness* :math:`L^*` of given *luminance* :math:`Y` using
given reference white *luminance* :math:`Y_n` as per *CIE Lab*
Expand All @@ -134,7 +134,7 @@ def lightness_1976(Y, Yn=100):
----------
Y : numeric
*luminance* :math:`Y`.
Yn : numeric, optional
Y_n : numeric, optional
White reference *luminance* :math:`Y_n`.
Returns
Expand All @@ -158,7 +158,7 @@ def lightness_1976(Y, Yn=100):
37.9856290...
"""

ratio = Y / Yn
ratio = Y / Y_n
L = CIE_K * ratio if ratio <= CIE_E else 116 * ratio ** (1 / 3) - 16

return L
Expand Down

0 comments on commit fc9b136

Please sign in to comment.