geepillow.strips#

A strip is a concatenation of blacks.

Classes#

Strip

Strip.

Module Contents#

class geepillow.strips.Strip(blocks, space=10, orientation='horizontal', position='center-center', fit_block=True, keep_proportion=True, size=None, background_color='white', background_opacity=1, mode=DEFAULT_MODE)[source]#

Bases: geepillow.blocks.ImageBlock

Strip.

A concatenation of blocks that behave like a block.

None will be replaced with a proxy block.

Parameters:
strip_image()[source]#

Create the strip image.

_background_color[source]#
_blocks[source]#
background_opacity = 1[source]#
property blocks: list[geepillow.blocks.Block][source]#

Replace None with proxy blocks.

Return type:

list[geepillow.blocks.Block]

mode = 'RGBA'[source]#
orientation = 'horizontal'[source]#
space = 10[source]#
property strip_height: float | int[source]#

Height of the row (max of all blocks).

Return type:

float | int

property strip_size: tuple[int, int][source]#

Size of the strip.

Return type:

tuple[int, int]

property strip_width: float | int[source]#

Width of the row.

Return type:

float | int