mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:21:44 +03:00
Call public, non-warning versions internally
This commit is contained in:
parent
37691bc1e4
commit
751f672058
|
@ -182,9 +182,9 @@ def random(mode="RGB"):
|
||||||
|
|
||||||
def sepia(white="#fff0c0"):
|
def sepia(white="#fff0c0"):
|
||||||
r, g, b = ImageColor.getrgb(white)
|
r, g, b = ImageColor.getrgb(white)
|
||||||
r = _make_linear_lut(0, r)
|
r = make_linear_lut(0, r)
|
||||||
g = _make_linear_lut(0, g)
|
g = make_linear_lut(0, g)
|
||||||
b = _make_linear_lut(0, b)
|
b = make_linear_lut(0, b)
|
||||||
return ImagePalette("RGB", r + g + b)
|
return ImagePalette("RGB", r + g + b)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user