replace y with l in luv2rgb to make more sense

This commit is contained in:
David Schmenk 2020-05-13 07:54:58 -07:00 committed by GitHub
parent 9bdbbe291e
commit cafcaae557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -22,10 +22,10 @@ def yuv2rgb(y, u, v):
b = max(0.0, y + 2.033 * u)
return r, g, b
def luv2rgb(y, u, v):
r = max(0.0, y + v)
g = max(0.0, y - 0.707 * u - 0.707 * v)
b = max(0.0, y + u)
def luv2rgb(l, u, v):
r = max(0.0, l + v)
g = max(0.0, l - 0.707 * u - 0.707 * v)
b = max(0.0, l + u)
return r, g, b
def ntscInitRGB(angle):