Ignore:
Timestamp:
09/06/13 18:12:07 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
34313438353234386265653530386664656564353733623661353035316431333963333965623435
Message:

Transparent moonlight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/utils.py

    r348 r362  
    2929
    3030
    31 def tile_surface(size, tile_image):
     31def tile_surface(size, tile_image, alpha=255):
    3232    # create a surface, approriately tiled
    3333    surface = pygame.surface.Surface(size, pgl.SRCALPHA)
    34     surface.fill(pygame.color.THECOLORS['black'])
     34    surface.fill(pygame.color.Color(0, 0, 0, alpha))
    3535    x_step = tile_image.get_rect().width
    3636    y_step = tile_image.get_rect().height
Note: See TracChangeset for help on using the changeset viewer.