CheckerImagePattern Class

Inheritance diagram of CheckerImagePattern

class CheckerImagePattern(color1=(150, 150, 150, 255), color2=(200, 200, 200, 255))

Create an image with a tileable checker image.

Constructor:

__init__(color1=(150, 150, 150, 255), color2=(200, 200, 200, 255))

Initialise with the given colors.

Parameters:
  • color1 ((int, int, int, int)) – 4-tuple of ints in range [0,255] giving RGBA components of color to fill with. This color appears in the top-left and bottom-right corners of the image.
  • color2 ((int, int, int, int)) – 4-tuple of ints in range [0,255] giving RGBA components of color to fill with. This color appears in the top-right and bottom-left corners of the image.

Methods:

create_image(width, height)

Methods

CheckerImagePattern.create_image(width, height)

Table Of Contents

Previous topic

BufferManager Class

Next topic

ColorBufferImage Class