mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-26 00:30:33 +03:00
fix formatting
This commit is contained in:
parent
13c1b7070d
commit
e18e96d736
|
@ -138,6 +138,7 @@ def screen(image1, image2):
|
|||
image2.load()
|
||||
return image1._new(image1.im.chop_screen(image2.im))
|
||||
|
||||
|
||||
def softlight(image1, image2):
|
||||
"""
|
||||
Superimposes two images on top of each other using the Soft Light algorithm
|
||||
|
@ -149,6 +150,7 @@ def softlight(image1, image2):
|
|||
image2.load()
|
||||
return image1._new(image1.im.chop_softlight(image2.im))
|
||||
|
||||
|
||||
def hardlight(image1, image2):
|
||||
"""
|
||||
Superimposes two images on top of each other using the Hard Light algorithm
|
||||
|
@ -160,6 +162,7 @@ def hardlight(image1, image2):
|
|||
image2.load()
|
||||
return image1._new(image1.im.chop_hardlight(image2.im))
|
||||
|
||||
|
||||
def overlay(image1, image2):
|
||||
"""
|
||||
Superimposes two images on top of each other using the Overlay algorithm
|
||||
|
@ -171,6 +174,7 @@ def overlay(image1, image2):
|
|||
image2.load()
|
||||
return image1._new(image1.im.chop_overlay(image2.im))
|
||||
|
||||
|
||||
def add(image1, image2, scale=1.0, offset=0):
|
||||
"""
|
||||
Adds two images, dividing the result by scale and adding the
|
||||
|
|
Loading…
Reference in New Issue
Block a user