forked from SilverStudioGames/WTS
Simplify some transforms
This commit is contained in:
parent
247433b573
commit
f179095287
@ -67,14 +67,11 @@ init python early:
|
||||
def clamp(n, smallest, largest):
|
||||
return max(smallest, min(n, largest))
|
||||
|
||||
def white_tint(image):
|
||||
return Transform( image, matrixcolor=TintMatrix((1.1, 1.1, 1.1)) )
|
||||
white_tint = Transform(image, matrixcolor=TintMatrix((1.1, 1.1, 1.1)))
|
||||
|
||||
def gray_tint(image):
|
||||
return Transform( image, matrixcolor=SaturationMatrix(0.0) )
|
||||
gray_tint = Transform(image, matrixcolor=SaturationMatrix(0.0))
|
||||
|
||||
def yellow_tint(image):
|
||||
return Transform( image, matrixcolor=TintMatrix((1.2, 1.1, 0.7)) )
|
||||
yellow_tint = Transform(image, matrixcolor=TintMatrix((1.2, 1.1, 0.7)))
|
||||
|
||||
def image_hover(image, brightness=0.12):
|
||||
"""Returns slightly brighter image used during hover events"""
|
||||
|
Loading…
Reference in New Issue
Block a user