batgrl.array_types#

Type annotations for numpy arrays.

Module Attributes

cell_dtype

A structured array type that represents a single cell in a terminal.

braille_pixel_dtype

A structured array type for building braille glyphs in a graphic field.

Cell

Cell0D

Cell1D

Cell2D

Float1D

Float2D

Coords

Int1D

Int2D

UInt32_2D

ULong1D

ULong2D

RGB_1D

RGB_2D

RGBA_1D

RGBA_2D

Unicode1D

Unicode2D

Enum2D

RGBM_2D

batgrl.array_types.braille_pixel_dtype = dtype([('ord', '<u4'), ('total_fg', '<f8', (4,)), ('ncolors', '<u4')])#

A structured array type for building braille glyphs in a graphic field.

batgrl.array_types.cell_dtype = dtype([('ord', '<u4'), ('style', 'u1'), ('fg_color', 'u1', (3,)), ('bg_color', 'u1', (3,))])#

A structured array type that represents a single cell in a terminal.