SolidColorImagePattern Class

Inheritance diagram of SolidColorImagePattern

class SolidColorImagePattern(color=(0, 0, 0, 0))

Creates an image filled with a solid color.

Constructor:

__init__(color=(0, 0, 0, 0))

Create a solid image pattern with the given color.

Parameters:color ((int, int, int, int)) – 4-tuple of ints in range [0,255] giving RGBA components of color to fill with.

Methods:

create_image(width, height)

Methods

SolidColorImagePattern.create_image(width, height)

Table Of Contents

Previous topic

ImagePattern Class

Next topic

Texture Class