python 2.7 - How can you edit the brightness of images in PyGame? -


i'm trying make opengl in python/pygame don't know how add shadow. don't want make lot of darker images game. can me?

i no expert in python try:

multiply color of image value 0.1, 0.2, 0.3 (anything less 1) give dark texture. easiest method involves reducing color values of texture.

or try more complex method such drawing transparent black quad on original image give illusion of being in shadow.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -