优化卵总展示光影
This commit is contained in:
@ -103,7 +103,12 @@ def _draw_snaur_display(image: PIL.Image.Image):
|
||||
|
||||
r, g, b, a = result.split()
|
||||
a = a.point(lambda p: int(p * 0.8))
|
||||
f2 = lambda p: int(p * 0.8 + 0.2)
|
||||
r = r.point(f2)
|
||||
g = g.point(f2)
|
||||
b = b.point(f2)
|
||||
result = PIL.Image.merge('RGBA', (r, g, b, a))
|
||||
result = PIL.Image.alpha_composite(snaur_image_base, result)
|
||||
|
||||
enhancer = PIL.ImageEnhance.Color(result)
|
||||
result = enhancer.enhance(0.85)
|
||||
|
||||
Reference in New Issue
Block a user