Package pajammin :: Package display :: Module image :: Class PatternImage
[show private | hide private]
[frames | no frames]

Class PatternImage

ImageSpec --+
            |
           PatternImage


Use one image as a 'pattern' to overlay on a template image. In particular, any pixels in the template image that have no green or blue component will be replaced by the result of multiplying that pixel's red value by the corresponding color in the pattern.
Method Summary
  __init__(self, template, pattern)
  __repr__(self)
  _load(self)
    Inherited from ImageSpec
  __eq__(self, other)
  __hash__(self)
  load(self, add_to_cache)
Create and return pygame surface containing the image specified by this imagespec.

Class Variable Summary
    Inherited from ImageSpec
dict _cache = {}

Method Details

__init__(self, template, pattern)
(Constructor)

Overrides:
pajammin.display.image.ImageSpec.__init__

__repr__(self)
(Representation operator)

Overrides:
pajammin.display.image.ImageSpec.__repr__

_load(self)

Overrides:
pajammin.display.image.ImageSpec._load