Changeset 9171 for src/django_gheat
- Timestamp:
- May 9, 2011, 5:44:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/tile.py
r9166 r9171 58 58 alpha_per_radius = float(2.55 * (100 - transparancy)) / radius 59 59 for r in range(radius,1,-1): 60 alpha = (radius - r) * alpha_per_radius60 alpha = int((radius - r) * alpha_per_radius) 61 61 pygame.draw.circle(new_surf,colour + (alpha,),center,r,0) 62 62 self.surf.blit(new_surf,(0,0),special_flags=pygame.BLEND_RGBA_MAX)
Note:
See TracChangeset
for help on using the changeset viewer.