geepillow.strips#
A strip is a concatenation of blacks.
Classes#
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.ImageBlockStrip.
A concatenation of blocks that behave like a block.
None will be replaced with a proxy block.
- Parameters:
blocks (list[geepillow.blocks.Block | geepillow.blocks.ImageBlock | geepillow.blocks.TextBlock | geepillow.eeblocks.EEImageBlock | geepillow.eeblocks.EEImageCollectionGrid | Strip | None]) – a list of Block instances.
space (float) – the space in pixels between blocks.
orientation (Literal['horizontal', 'vertical']) – orientation of the strip.
position (tuple | geepillow.blocks.PositionType) – position of the strip inside the block.
background_color (str | geepillow.colors.Color) – color of the background.
background_opacity (float) – opacity of the background.
fit_block (bool) – if True the element’s boundaries will never exceed the block.
keep_proportion (bool) – keep proportion (ratio) of the image.
size (tuple | None) – size of the strip.
mode (str) – mode of the background image.
- property blocks: list[geepillow.blocks.Block][source]#
Replace None with proxy blocks.
- Return type:
list[geepillow.blocks.Block]