Defined in pyglet.image
create
(width, height, pattern=None)¶Create an image optionally filled with the given pattern.
Note: | You can make no assumptions about the return type; usually it will be ImageData or CompressedImageData, but patterns are free to return any subclass of AbstractImage. |
---|---|
Parameters: |
|
Return type: |