Python API

Runtime and pixel formats

Runtime capability probes and the exported framebuffer format constants.

Source snapshot: df47b3926b7c52e7f62eddbbf9dc618d6bbd6b6a.

Runtime capability probes and the exported framebuffer format constants.

Every entry below is generated from a public binding table or header declaration and links to its immutable source line.

graphics.framebuf_backend

graphics.framebuf_backend()

Return the active framebuffer backend identifier.

View the pinned source declaration

graphics.implementation

graphics.implementation()

Return the implementation identifier for this graphics module.

View the pinned source declaration

graphics.capabilities

graphics.capabilities()

Return structured runtime feature and pixel-format capabilities.

View the pinned source declaration

graphics.MONO_VLSB

graphics.MONO_VLSB

Monochrome vertical least-significant-bit layout.

View the pinned source declaration

graphics.MONO_HLSB

graphics.MONO_HLSB

Monochrome horizontal least-significant-bit layout.

View the pinned source declaration

graphics.MONO_HMSB

graphics.MONO_HMSB

Monochrome horizontal most-significant-bit layout.

View the pinned source declaration

graphics.RGB565

graphics.RGB565

16-bit RGB565 pixel layout.

View the pinned source declaration

graphics.GS2_HMSB

graphics.GS2_HMSB

2-bit grayscale horizontal most-significant-bit layout.

View the pinned source declaration

graphics.GS4_HMSB

graphics.GS4_HMSB

4-bit grayscale horizontal most-significant-bit layout.

View the pinned source declaration

graphics.GS8

graphics.GS8

8-bit grayscale layout.

View the pinned source declaration

graphics.RGB888

graphics.RGB888

24-bit RGB888 pixel layout.

View the pinned source declaration