geepillow.grids =============== .. py:module:: geepillow.grids .. autoapi-nested-parse:: A gris is just a nested strip. Attributes ---------- .. autoapisummary:: geepillow.grids.logger Classes ------- .. autoapisummary:: geepillow.grids.Grid Module Contents --------------- .. py:class:: Grid(blocks, x_space = 10, y_space = 10, position = 'center-center', fit_block = True, keep_proportion = True, size = None, background_color = 'white', background_opacity = 1, mode = DEFAULT_MODE) Bases: :py:obj:`geepillow.blocks.ImageBlock` Grid. A vertical strip nested into a horizontal strip. :param blocks: a list of Block instances. :param x_space: the space in pixels between blocks. :param y_space: the space in pixels between rows. :param position: position of the strip inside the block. :param background_color: color of the background. :param background_opacity: opacity of the background. :param fit_block: if True the element's boundaries will never exceed the block. :param keep_proportion: keep proportion (ratio) of the image. :param size: size of the block (not the image). :param mode: mode of the background image. .. py:method:: column_width(n_column) Width of the n column. :param n_column: the position of the column. .. py:method:: grid_image() Create the grid image. .. py:method:: row_height(n_row) Height of the n row. :param n_row: the position of the row. .. py:attribute:: _background_color .. py:attribute:: _blocks .. py:attribute:: background_opacity :value: 1 .. py:property:: blocks Replace None with proxy blocks. .. py:property:: grid_size :type: tuple[int, int] Size of the grid. .. py:attribute:: mode :value: 'RGBA' .. py:attribute:: x_space :value: 10 .. py:attribute:: y_space :value: 10 .. py:data:: logger