def create(width, height, pattern=None):
    if not pattern:
        pattern = SolidColorImagePattern()
    return pattern.create_image(width, height)
Create an image optionally filled with the given pattern.
dataset/ETHPy150Open ardekantur/pyglet/pyglet/image/__init__.py/create