--- /srv/rebuilderd/tmp/rebuilderdFjtKoQ/inputs/luma.emulator-doc_1.4.0-3_all.deb +++ /srv/rebuilderd/tmp/rebuilderdFjtKoQ/out/luma.emulator-doc_1.4.0-3_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2022-05-15 11:44:25.000000 debian-binary │ -rw-r--r-- 0 0 0 1496 2022-05-15 11:44:25.000000 control.tar.xz │ --rw-r--r-- 0 0 0 27244 2022-05-15 11:44:25.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 27100 2022-05-15 11:44:25.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./control │ │ │ @@ -1,13 +1,13 @@ │ │ │ Package: luma.emulator-doc │ │ │ Source: luma.emulator │ │ │ Version: 1.4.0-3 │ │ │ Architecture: all │ │ │ Maintainer: Debian Electronics Team │ │ │ -Installed-Size: 301 │ │ │ +Installed-Size: 295 │ │ │ Depends: libjs-sphinxdoc (>= 4.3) │ │ │ Section: python │ │ │ Priority: optional │ │ │ Homepage: https://github.com/rm-hull/luma.emulator │ │ │ Description: doc for library provides a series of pseudo-display devices for luma.core │ │ │ Library provides a series of pseudo-display devices which allow the luma.core │ │ │ components to be used without running a physical device. These include: │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── file list │ │ │ @@ -24,15 +24,15 @@ │ │ │ -rw-r--r-- 0 root (0) root (0) 28 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/_static/default.css │ │ │ -rw-r--r-- 0 root (0) root (0) 422 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/_static/documentation_options.js │ │ │ -rw-r--r-- 0 root (0) root (0) 286 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/_static/file.png │ │ │ -rw-r--r-- 0 root (0) root (0) 299 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/_static/graphviz.css │ │ │ -rw-r--r-- 0 root (0) root (0) 90 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/_static/minus.png │ │ │ -rw-r--r-- 0 root (0) root (0) 90 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/_static/plus.png │ │ │ -rw-r--r-- 0 root (0) root (0) 4846 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/_static/pygments.css │ │ │ --rw-r--r-- 0 root (0) root (0) 87715 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/api-documentation.html │ │ │ +-rw-r--r-- 0 root (0) root (0) 81410 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/api-documentation.html │ │ │ -rw-r--r-- 0 root (0) root (0) 16436 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/genindex.html │ │ │ -rw-r--r-- 0 root (0) root (0) 12795 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/index.html │ │ │ -rw-r--r-- 0 root (0) root (0) 6430 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/install.html │ │ │ -rw-r--r-- 0 root (0) root (0) 6192 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/intro.html │ │ │ -rw-r--r-- 0 root (0) root (0) 935 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/objects.inv │ │ │ -rw-r--r-- 0 root (0) root (0) 4388 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/py-modindex.html │ │ │ -rw-r--r-- 0 root (0) root (0) 3535 2022-05-15 11:44:25.000000 ./usr/share/doc/luma.emulator-doc/html/search.html │ │ ├── ./usr/share/doc/luma.emulator-doc/html/api-documentation.html │ │ │ @@ -101,20 +101,20 @@ │ │ │
│ │ │ capabilities(width, height, rotate, mode='1')
│ │ │

Assigns attributes such as width, height, size and │ │ │ bounding_box correctly oriented from the supplied parameters.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │ -
  • width (int) – The device width.

  • │ │ │ -
  • height (int) – The device height.

  • │ │ │ -
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ +

  • width (int) – The device width.

  • │ │ │ +
  • height (int) – The device height.

  • │ │ │ +
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ no rotation, 1 is rotate 90° clockwise, 2 is 180° rotation and 3 │ │ │ represents 270° rotation.

  • │ │ │ -
  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ +

  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ "RGBA" only.

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ @@ -147,30 +147,30 @@ │ │ │ contrast(value) │ │ │

Switches the display contrast to the desired level, in the range │ │ │ 0-255. Note that setting the level to a low (or zero) value will │ │ │ not necessarily dim the display to nearly off. In other words, │ │ │ this method is NOT suitable for fade-in/out animation.

│ │ │
│ │ │
Parameters
│ │ │ -

level (int) – Desired contrast level in the range of 0-255.

│ │ │ +

level (int) – Desired contrast level in the range of 0-255.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ data(data)
│ │ │

Sends a data byte or sequence of data bytes through to the delegated │ │ │ serial interface.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ display(image)[source]
│ │ │ -

Takes a PIL.Image and renders it to the current terminal as │ │ │ +

Takes a PIL.Image and renders it to the current terminal as │ │ │ ASCII-art.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ hide()
│ │ │

Switches the display mode OFF, putting the device in low-power │ │ │ @@ -181,36 +181,36 @@ │ │ │

│ │ │ preprocess(image)
│ │ │

Provides a preprocessing facility (which may be overridden) whereby the supplied image is │ │ │ rotated according to the device’s rotate capability. If this method is │ │ │ overridden, it is important to call the super method.

│ │ │
│ │ │
Parameters
│ │ │ -

image (PIL.Image.Image) – An image to pre-process.

│ │ │ +

image (PIL.Image.Image) – An image to pre-process.

│ │ │
│ │ │
Returns
│ │ │

A new processed image.

│ │ │
│ │ │
Return type
│ │ │ -

PIL.Image.Image

│ │ │ +

PIL.Image.Image

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ show()
│ │ │

Sets the display mode ON, waking the device out of a prior │ │ │ low-power sleep mode.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ to_surface(image, alpha=1.0)
│ │ │ -

Converts a PIL.Image into a pygame.Surface, │ │ │ +

Converts a PIL.Image into a pygame.Surface, │ │ │ transforming it according to the transform and scale │ │ │ constructor arguments.

│ │ │
│ │ │ │ │ │ │ │ │ │ │ │
│ │ │ @@ -230,20 +230,20 @@ │ │ │
│ │ │ capabilities(width, height, rotate, mode='1')
│ │ │

Assigns attributes such as width, height, size and │ │ │ bounding_box correctly oriented from the supplied parameters.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │ -
  • width (int) – The device width.

  • │ │ │ -
  • height (int) – The device height.

  • │ │ │ -
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ +

  • width (int) – The device width.

  • │ │ │ +
  • height (int) – The device height.

  • │ │ │ +
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ no rotation, 1 is rotate 90° clockwise, 2 is 180° rotation and 3 │ │ │ represents 270° rotation.

  • │ │ │ -
  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ +

  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ "RGBA" only.

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ @@ -276,30 +276,30 @@ │ │ │ contrast(value) │ │ │

Switches the display contrast to the desired level, in the range │ │ │ 0-255. Note that setting the level to a low (or zero) value will │ │ │ not necessarily dim the display to nearly off. In other words, │ │ │ this method is NOT suitable for fade-in/out animation.

│ │ │
│ │ │
Parameters
│ │ │ -

level (int) – Desired contrast level in the range of 0-255.

│ │ │ +

level (int) – Desired contrast level in the range of 0-255.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ data(data)
│ │ │

Sends a data byte or sequence of data bytes through to the delegated │ │ │ serial interface.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ display(image)[source]
│ │ │ -

Takes a PIL.Image and renders it to the current terminal as │ │ │ +

Takes a PIL.Image and renders it to the current terminal as │ │ │ ASCII-blocks.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ hide()
│ │ │

Switches the display mode OFF, putting the device in low-power │ │ │ @@ -310,36 +310,36 @@ │ │ │

│ │ │ preprocess(image)
│ │ │

Provides a preprocessing facility (which may be overridden) whereby the supplied image is │ │ │ rotated according to the device’s rotate capability. If this method is │ │ │ overridden, it is important to call the super method.

│ │ │
│ │ │
Parameters
│ │ │ -

image (PIL.Image.Image) – An image to pre-process.

│ │ │ +

image (PIL.Image.Image) – An image to pre-process.

│ │ │
│ │ │
Returns
│ │ │

A new processed image.

│ │ │
│ │ │
Return type
│ │ │ -

PIL.Image.Image

│ │ │ +

PIL.Image.Image

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ show()
│ │ │

Sets the display mode ON, waking the device out of a prior │ │ │ low-power sleep mode.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ to_surface(image, alpha=1.0)
│ │ │ -

Converts a PIL.Image into a pygame.Surface, │ │ │ +

Converts a PIL.Image into a pygame.Surface, │ │ │ transforming it according to the transform and scale │ │ │ constructor arguments.

│ │ │
│ │ │ │ │ │ │ │ │ │ │ │
│ │ │ @@ -353,20 +353,20 @@ │ │ │
│ │ │ capabilities(width, height, rotate, mode='1')
│ │ │

Assigns attributes such as width, height, size and │ │ │ bounding_box correctly oriented from the supplied parameters.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │ -
  • width (int) – The device width.

  • │ │ │ -
  • height (int) – The device height.

  • │ │ │ -
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ +

  • width (int) – The device width.

  • │ │ │ +
  • height (int) – The device height.

  • │ │ │ +
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ no rotation, 1 is rotate 90° clockwise, 2 is 180° rotation and 3 │ │ │ represents 270° rotation.

  • │ │ │ -
  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ +

  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ "RGBA" only.

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ @@ -399,30 +399,30 @@ │ │ │ contrast(value) │ │ │

Switches the display contrast to the desired level, in the range │ │ │ 0-255. Note that setting the level to a low (or zero) value will │ │ │ not necessarily dim the display to nearly off. In other words, │ │ │ this method is NOT suitable for fade-in/out animation.

│ │ │
│ │ │
Parameters
│ │ │ -

level (int) – Desired contrast level in the range of 0-255.

│ │ │ +

level (int) – Desired contrast level in the range of 0-255.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ data(data)
│ │ │

Sends a data byte or sequence of data bytes through to the delegated │ │ │ serial interface.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ display(image)[source]
│ │ │ -

Takes a PIL.Image and dumps it to a numbered PNG file.

│ │ │ +

Takes a PIL.Image and dumps it to a numbered PNG file.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ hide()
│ │ │

Switches the display mode OFF, putting the device in low-power │ │ │ sleep mode.

│ │ │ @@ -432,36 +432,36 @@ │ │ │
│ │ │ preprocess(image)
│ │ │

Provides a preprocessing facility (which may be overridden) whereby the supplied image is │ │ │ rotated according to the device’s rotate capability. If this method is │ │ │ overridden, it is important to call the super method.

│ │ │
│ │ │
Parameters
│ │ │ -

image (PIL.Image.Image) – An image to pre-process.

│ │ │ +

image (PIL.Image.Image) – An image to pre-process.

│ │ │
│ │ │
Returns
│ │ │

A new processed image.

│ │ │
│ │ │
Return type
│ │ │ -

PIL.Image.Image

│ │ │ +

PIL.Image.Image

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ show()
│ │ │

Sets the display mode ON, waking the device out of a prior │ │ │ low-power sleep mode.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ to_surface(image, alpha=1.0)
│ │ │ -

Converts a PIL.Image into a pygame.Surface, │ │ │ +

Converts a PIL.Image into a pygame.Surface, │ │ │ transforming it according to the transform and scale │ │ │ constructor arguments.

│ │ │
│ │ │ │ │ │ │ │ │ │ │ │
│ │ │ @@ -476,20 +476,20 @@ │ │ │
│ │ │ capabilities(width, height, rotate, mode='1')
│ │ │

Assigns attributes such as width, height, size and │ │ │ bounding_box correctly oriented from the supplied parameters.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │ -
  • width (int) – The device width.

  • │ │ │ -
  • height (int) – The device height.

  • │ │ │ -
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ +

  • width (int) – The device width.

  • │ │ │ +
  • height (int) – The device height.

  • │ │ │ +
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ no rotation, 1 is rotate 90° clockwise, 2 is 180° rotation and 3 │ │ │ represents 270° rotation.

  • │ │ │ -
  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ +

  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ "RGBA" only.

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ @@ -522,15 +522,15 @@ │ │ │ contrast(value) │ │ │

Switches the display contrast to the desired level, in the range │ │ │ 0-255. Note that setting the level to a low (or zero) value will │ │ │ not necessarily dim the display to nearly off. In other words, │ │ │ this method is NOT suitable for fade-in/out animation.

│ │ │
│ │ │
Parameters
│ │ │ -

level (int) – Desired contrast level in the range of 0-255.

│ │ │ +

level (int) – Desired contrast level in the range of 0-255.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ data(data)
│ │ │ @@ -556,36 +556,36 @@ │ │ │
│ │ │ preprocess(image)
│ │ │

Provides a preprocessing facility (which may be overridden) whereby the supplied image is │ │ │ rotated according to the device’s rotate capability. If this method is │ │ │ overridden, it is important to call the super method.

│ │ │
│ │ │
Parameters
│ │ │ -

image (PIL.Image.Image) – An image to pre-process.

│ │ │ +

image (PIL.Image.Image) – An image to pre-process.

│ │ │
│ │ │
Returns
│ │ │

A new processed image.

│ │ │
│ │ │
Return type
│ │ │ -

PIL.Image.Image

│ │ │ +

PIL.Image.Image

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ show()
│ │ │

Sets the display mode ON, waking the device out of a prior │ │ │ low-power sleep mode.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ to_surface(image, alpha=1.0)
│ │ │ -

Converts a PIL.Image into a pygame.Surface, │ │ │ +

Converts a PIL.Image into a pygame.Surface, │ │ │ transforming it according to the transform and scale │ │ │ constructor arguments.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ write_animation()[source]
│ │ │ @@ -599,29 +599,29 @@ │ │ │

Bases: luma.emulator.device.emulator

│ │ │

Pseudo-device that acts like a physical display, except that it renders │ │ │ to a displayed window. The frame rate is limited to 60FPS (much faster │ │ │ than a Raspberry Pi can achieve, but this can be overridden as necessary). │ │ │ Supports 24-bit color depth.

│ │ │

pygame is used to render the emulated display window, and it’s │ │ │ event loop is checked to see if the ESC key was pressed or the window │ │ │ -was dismissed: if so sys.exit() is called.

│ │ │ +was dismissed: if so sys.exit() is called.

│ │ │
│ │ │
│ │ │ capabilities(width, height, rotate, mode='1')
│ │ │

Assigns attributes such as width, height, size and │ │ │ bounding_box correctly oriented from the supplied parameters.

│ │ │
│ │ │
Parameters
│ │ │
    │ │ │ -
  • width (int) – The device width.

  • │ │ │ -
  • height (int) – The device height.

  • │ │ │ -
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ +

  • width (int) – The device width.

  • │ │ │ +
  • height (int) – The device height.

  • │ │ │ +
  • rotate (int) – An integer value of 0 (default), 1, 2 or 3 only, where 0 is │ │ │ no rotation, 1 is rotate 90° clockwise, 2 is 180° rotation and 3 │ │ │ represents 270° rotation.

  • │ │ │ -
  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ +

  • mode (str) – The supported color model, one of "1", "RGB" or │ │ │ "RGBA" only.

  • │ │ │
│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │ @@ -654,30 +654,30 @@ │ │ │ contrast(value) │ │ │

Switches the display contrast to the desired level, in the range │ │ │ 0-255. Note that setting the level to a low (or zero) value will │ │ │ not necessarily dim the display to nearly off. In other words, │ │ │ this method is NOT suitable for fade-in/out animation.

│ │ │
│ │ │
Parameters
│ │ │ -

level (int) – Desired contrast level in the range of 0-255.

│ │ │ +

level (int) – Desired contrast level in the range of 0-255.

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ data(data)
│ │ │

Sends a data byte or sequence of data bytes through to the delegated │ │ │ serial interface.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ display(image)[source]
│ │ │ -

Takes a PIL.Image and renders it to a pygame display surface.

│ │ │ +

Takes a PIL.Image and renders it to a pygame display surface.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ hide()
│ │ │

Switches the display mode OFF, putting the device in low-power │ │ │ sleep mode.

│ │ │ @@ -687,49 +687,49 @@ │ │ │
│ │ │ preprocess(image)
│ │ │

Provides a preprocessing facility (which may be overridden) whereby the supplied image is │ │ │ rotated according to the device’s rotate capability. If this method is │ │ │ overridden, it is important to call the super method.

│ │ │
│ │ │
Parameters
│ │ │ -

image (PIL.Image.Image) – An image to pre-process.

│ │ │ +

image (PIL.Image.Image) – An image to pre-process.

│ │ │
│ │ │
Returns
│ │ │

A new processed image.

│ │ │
│ │ │
Return type
│ │ │ -

PIL.Image.Image

│ │ │ +

PIL.Image.Image

│ │ │
│ │ │
│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ show()
│ │ │

Sets the display mode ON, waking the device out of a prior │ │ │ low-power sleep mode.

│ │ │
│ │ │ │ │ │
│ │ │
│ │ │ to_surface(image, alpha=1.0)
│ │ │ -

Converts a PIL.Image into a pygame.Surface, │ │ │ +

Converts a PIL.Image into a pygame.Surface, │ │ │ transforming it according to the transform and scale │ │ │ constructor arguments.

│ │ │
│ │ │ │ │ │
│ │ │ │ │ │ │ │ │
│ │ │

luma.emulator.render

│ │ │
│ │ │
│ │ │ class luma.emulator.render.transformer(pygame, width, height, scale)[source]
│ │ │ -

Bases: object

│ │ │ +

Bases: object

│ │ │

Helper class used to dispatch transformation operations.

│ │ │
│ │ │
│ │ │ identity(surface)[source]
│ │ │

Fast scale operation that does not sample the results

│ │ │
│ │ │ ├── html2text {} │ │ │ │ @@ -119,21 +119,21 @@ │ │ │ │ Loosely based on _h_t_t_p_s_:_/_/_g_i_t_h_u_b_._c_o_m_/_a_j_a_l_t_/_p_y_a_s_c_i_i_g_e_n_/_b_l_o_b_/_m_a_s_t_e_r_/ │ │ │ │ _a_s_c_i_i_g_e_n_._p_y │ │ │ │ New in version 0.2.0. │ │ │ │ capabilities(wwiiddtthh, hheeiigghhtt, rroottaattee, mmooddee==''11'')_¶ │ │ │ │ Assigns attributes such as width, height, size and bounding_box │ │ │ │ correctly oriented from the supplied parameters. │ │ │ │ Parameters │ │ │ │ - * wwiiddtthh (_ii_nn_tt) – The device width. │ │ │ │ - * hheeiigghhtt (_ii_nn_tt) – The device height. │ │ │ │ - * rroottaattee (_ii_nn_tt) – An integer value of 0 (default), 1, 2 or │ │ │ │ + * wwiiddtthh (iinntt) – The device width. │ │ │ │ + * hheeiigghhtt (iinntt) – The device height. │ │ │ │ + * rroottaattee (iinntt) – An integer value of 0 (default), 1, 2 or │ │ │ │ 3 only, where 0 is no rotation, 1 is rotate 90° │ │ │ │ clockwise, 2 is 180° rotation and 3 represents 270° │ │ │ │ rotation. │ │ │ │ - * mmooddee (_ss_tt_rr) – The supported color model, one of "1", │ │ │ │ + * mmooddee (ssttrr) – The supported color model, one of "1", │ │ │ │ "RGB" or "RGBA" only. │ │ │ │ cleanup()_[_s_o_u_r_c_e_]_¶ │ │ │ │ Attempt to switch the device off or put into low power mode (this │ │ │ │ helps prolong the life of the device), clear the screen and close │ │ │ │ resources associated with the underlying serial interface. │ │ │ │ If persist is True, the device will not be switched off. │ │ │ │ This is a managed function, which is called when the python │ │ │ │ @@ -146,40 +146,40 @@ │ │ │ │ serial interface. │ │ │ │ contrast(vvaalluuee)_¶ │ │ │ │ Switches the display contrast to the desired level, in the range 0- │ │ │ │ 255. Note that setting the level to a low (or zero) value will not │ │ │ │ necessarily dim the display to nearly off. In other words, this │ │ │ │ method is NNOOTT suitable for fade-in/out animation. │ │ │ │ Parameters │ │ │ │ - lleevveell (_ii_nn_tt) – Desired contrast level in the range of 0-255. │ │ │ │ + lleevveell (iinntt) – Desired contrast level in the range of 0-255. │ │ │ │ data(ddaattaa)_¶ │ │ │ │ Sends a data byte or sequence of data bytes through to the │ │ │ │ delegated serial interface. │ │ │ │ display(iimmaaggee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ - Takes a _P_I_L_._I_m_a_g_e and renders it to the current terminal as ASCII- │ │ │ │ + Takes a PIL.Image and renders it to the current terminal as ASCII- │ │ │ │ art. │ │ │ │ hide()_¶ │ │ │ │ Switches the display mode OFF, putting the device in low-power │ │ │ │ sleep mode. │ │ │ │ preprocess(iimmaaggee)_¶ │ │ │ │ Provides a preprocessing facility (which may be overridden) whereby │ │ │ │ the supplied image is rotated according to the device’s rotate │ │ │ │ capability. If this method is overridden, it is important to call │ │ │ │ the super method. │ │ │ │ Parameters │ │ │ │ - iimmaaggee (_PP_II_LL_.._II_mm_aa_gg_ee_.._II_mm_aa_gg_ee) – An image to pre-process. │ │ │ │ + iimmaaggee (PPIILL..IImmaaggee..IImmaaggee) – An image to pre-process. │ │ │ │ Returns │ │ │ │ A new processed image. │ │ │ │ Return type │ │ │ │ - _P_I_L_._I_m_a_g_e_._I_m_a_g_e │ │ │ │ + PIL.Image.Image │ │ │ │ show()_¶ │ │ │ │ Sets the display mode ON, waking the device out of a prior low- │ │ │ │ power sleep mode. │ │ │ │ to_surface(iimmaaggee, aallpphhaa==11..00)_¶ │ │ │ │ - Converts a _P_I_L_._I_m_a_g_e into a pygame.Surface, transforming it │ │ │ │ + Converts a PIL.Image into a pygame.Surface, transforming it │ │ │ │ according to the transform and scale constructor arguments. │ │ │ │ ccllaassss luma.emulator.device.asciiblock(wwiiddtthh==112288, hheeiigghhtt==6644, rroottaattee==00, │ │ │ │ mmooddee==''RRGGBB'', ttrraannssffoorrmm==''ssccaallee22xx'', ssccaallee==22, ****kkwwaarrggss)_[_s_o_u_r_c_e_]_¶ │ │ │ │ Bases: luma.emulator.device.emulator │ │ │ │ Pseudo-device that acts like a physical display, except that it converts │ │ │ │ the image pixels to display into colored ASCII half-blocks (ASCII code │ │ │ │ 220, ‘▄’), where the upper part background is used for one pixel, and the │ │ │ │ @@ -189,21 +189,21 @@ │ │ │ │ Inspired by _C_o_m_m_a_n_d_ _L_i_n_e_ _C_u_r_i_o_s_i_t_i_e_s_ _-_ _M_a_k_i_n_g_ _t_h_e_ _T_e_r_m_i_n_a_l_ _S_i_n_g_ _b_y_ _H_a_m_z_a │ │ │ │ _H_a_i_k_e_n │ │ │ │ New in version 1.1.0. │ │ │ │ capabilities(wwiiddtthh, hheeiigghhtt, rroottaattee, mmooddee==''11'')_¶ │ │ │ │ Assigns attributes such as width, height, size and bounding_box │ │ │ │ correctly oriented from the supplied parameters. │ │ │ │ Parameters │ │ │ │ - * wwiiddtthh (_ii_nn_tt) – The device width. │ │ │ │ - * hheeiigghhtt (_ii_nn_tt) – The device height. │ │ │ │ - * rroottaattee (_ii_nn_tt) – An integer value of 0 (default), 1, 2 or │ │ │ │ + * wwiiddtthh (iinntt) – The device width. │ │ │ │ + * hheeiigghhtt (iinntt) – The device height. │ │ │ │ + * rroottaattee (iinntt) – An integer value of 0 (default), 1, 2 or │ │ │ │ 3 only, where 0 is no rotation, 1 is rotate 90° │ │ │ │ clockwise, 2 is 180° rotation and 3 represents 270° │ │ │ │ rotation. │ │ │ │ - * mmooddee (_ss_tt_rr) – The supported color model, one of "1", │ │ │ │ + * mmooddee (ssttrr) – The supported color model, one of "1", │ │ │ │ "RGB" or "RGBA" only. │ │ │ │ cleanup()_[_s_o_u_r_c_e_]_¶ │ │ │ │ Attempt to switch the device off or put into low power mode (this │ │ │ │ helps prolong the life of the device), clear the screen and close │ │ │ │ resources associated with the underlying serial interface. │ │ │ │ If persist is True, the device will not be switched off. │ │ │ │ This is a managed function, which is called when the python │ │ │ │ @@ -216,59 +216,59 @@ │ │ │ │ serial interface. │ │ │ │ contrast(vvaalluuee)_¶ │ │ │ │ Switches the display contrast to the desired level, in the range 0- │ │ │ │ 255. Note that setting the level to a low (or zero) value will not │ │ │ │ necessarily dim the display to nearly off. In other words, this │ │ │ │ method is NNOOTT suitable for fade-in/out animation. │ │ │ │ Parameters │ │ │ │ - lleevveell (_ii_nn_tt) – Desired contrast level in the range of 0-255. │ │ │ │ + lleevveell (iinntt) – Desired contrast level in the range of 0-255. │ │ │ │ data(ddaattaa)_¶ │ │ │ │ Sends a data byte or sequence of data bytes through to the │ │ │ │ delegated serial interface. │ │ │ │ display(iimmaaggee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ - Takes a _P_I_L_._I_m_a_g_e and renders it to the current terminal as ASCII- │ │ │ │ + Takes a PIL.Image and renders it to the current terminal as ASCII- │ │ │ │ blocks. │ │ │ │ hide()_¶ │ │ │ │ Switches the display mode OFF, putting the device in low-power │ │ │ │ sleep mode. │ │ │ │ preprocess(iimmaaggee)_¶ │ │ │ │ Provides a preprocessing facility (which may be overridden) whereby │ │ │ │ the supplied image is rotated according to the device’s rotate │ │ │ │ capability. If this method is overridden, it is important to call │ │ │ │ the super method. │ │ │ │ Parameters │ │ │ │ - iimmaaggee (_PP_II_LL_.._II_mm_aa_gg_ee_.._II_mm_aa_gg_ee) – An image to pre-process. │ │ │ │ + iimmaaggee (PPIILL..IImmaaggee..IImmaaggee) – An image to pre-process. │ │ │ │ Returns │ │ │ │ A new processed image. │ │ │ │ Return type │ │ │ │ - _P_I_L_._I_m_a_g_e_._I_m_a_g_e │ │ │ │ + PIL.Image.Image │ │ │ │ show()_¶ │ │ │ │ Sets the display mode ON, waking the device out of a prior low- │ │ │ │ power sleep mode. │ │ │ │ to_surface(iimmaaggee, aallpphhaa==11..00)_¶ │ │ │ │ - Converts a _P_I_L_._I_m_a_g_e into a pygame.Surface, transforming it │ │ │ │ + Converts a PIL.Image into a pygame.Surface, transforming it │ │ │ │ according to the transform and scale constructor arguments. │ │ │ │ ccllaassss luma.emulator.device.capture(wwiiddtthh==112288, hheeiigghhtt==6644, rroottaattee==00, │ │ │ │ mmooddee==''RRGGBB'', ttrraannssffoorrmm==''ssccaallee22xx'', ssccaallee==22, ffiillee__tteemmppllaattee==''lluummaa__{{00::0066}}..ppnngg'', │ │ │ │ ****kkwwaarrggss)_[_s_o_u_r_c_e_]_¶ │ │ │ │ Bases: luma.emulator.device.emulator │ │ │ │ Pseudo-device that acts like a physical display, except that it writes │ │ │ │ the image to a numbered PNG file when the _d_i_s_p_l_a_y_(_) method is called. │ │ │ │ Supports 24-bit color depth. │ │ │ │ capabilities(wwiiddtthh, hheeiigghhtt, rroottaattee, mmooddee==''11'')_¶ │ │ │ │ Assigns attributes such as width, height, size and bounding_box │ │ │ │ correctly oriented from the supplied parameters. │ │ │ │ Parameters │ │ │ │ - * wwiiddtthh (_ii_nn_tt) – The device width. │ │ │ │ - * hheeiigghhtt (_ii_nn_tt) – The device height. │ │ │ │ - * rroottaattee (_ii_nn_tt) – An integer value of 0 (default), 1, 2 or │ │ │ │ + * wwiiddtthh (iinntt) – The device width. │ │ │ │ + * hheeiigghhtt (iinntt) – The device height. │ │ │ │ + * rroottaattee (iinntt) – An integer value of 0 (default), 1, 2 or │ │ │ │ 3 only, where 0 is no rotation, 1 is rotate 90° │ │ │ │ clockwise, 2 is 180° rotation and 3 represents 270° │ │ │ │ rotation. │ │ │ │ - * mmooddee (_ss_tt_rr) – The supported color model, one of "1", │ │ │ │ + * mmooddee (ssttrr) – The supported color model, one of "1", │ │ │ │ "RGB" or "RGBA" only. │ │ │ │ cleanup()_¶ │ │ │ │ Attempt to switch the device off or put into low power mode (this │ │ │ │ helps prolong the life of the device), clear the screen and close │ │ │ │ resources associated with the underlying serial interface. │ │ │ │ If persist is True, the device will not be switched off. │ │ │ │ This is a managed function, which is called when the python │ │ │ │ @@ -281,59 +281,59 @@ │ │ │ │ serial interface. │ │ │ │ contrast(vvaalluuee)_¶ │ │ │ │ Switches the display contrast to the desired level, in the range 0- │ │ │ │ 255. Note that setting the level to a low (or zero) value will not │ │ │ │ necessarily dim the display to nearly off. In other words, this │ │ │ │ method is NNOOTT suitable for fade-in/out animation. │ │ │ │ Parameters │ │ │ │ - lleevveell (_ii_nn_tt) – Desired contrast level in the range of 0-255. │ │ │ │ + lleevveell (iinntt) – Desired contrast level in the range of 0-255. │ │ │ │ data(ddaattaa)_¶ │ │ │ │ Sends a data byte or sequence of data bytes through to the │ │ │ │ delegated serial interface. │ │ │ │ display(iimmaaggee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ - Takes a _P_I_L_._I_m_a_g_e and dumps it to a numbered PNG file. │ │ │ │ + Takes a PIL.Image and dumps it to a numbered PNG file. │ │ │ │ hide()_¶ │ │ │ │ Switches the display mode OFF, putting the device in low-power │ │ │ │ sleep mode. │ │ │ │ preprocess(iimmaaggee)_¶ │ │ │ │ Provides a preprocessing facility (which may be overridden) whereby │ │ │ │ the supplied image is rotated according to the device’s rotate │ │ │ │ capability. If this method is overridden, it is important to call │ │ │ │ the super method. │ │ │ │ Parameters │ │ │ │ - iimmaaggee (_PP_II_LL_.._II_mm_aa_gg_ee_.._II_mm_aa_gg_ee) – An image to pre-process. │ │ │ │ + iimmaaggee (PPIILL..IImmaaggee..IImmaaggee) – An image to pre-process. │ │ │ │ Returns │ │ │ │ A new processed image. │ │ │ │ Return type │ │ │ │ - _P_I_L_._I_m_a_g_e_._I_m_a_g_e │ │ │ │ + PIL.Image.Image │ │ │ │ show()_¶ │ │ │ │ Sets the display mode ON, waking the device out of a prior low- │ │ │ │ power sleep mode. │ │ │ │ to_surface(iimmaaggee, aallpphhaa==11..00)_¶ │ │ │ │ - Converts a _P_I_L_._I_m_a_g_e into a pygame.Surface, transforming it │ │ │ │ + Converts a PIL.Image into a pygame.Surface, transforming it │ │ │ │ according to the transform and scale constructor arguments. │ │ │ │ ccllaassss luma.emulator.device.gifanim(wwiiddtthh==112288, hheeiigghhtt==6644, rroottaattee==00, │ │ │ │ mmooddee==''RRGGBB'', ttrraannssffoorrmm==''ssccaallee22xx'', ssccaallee==22, ffiilleennaammee==''lluummaa__aanniimm..ggiiff'', │ │ │ │ dduurraattiioonn==00..0011, lloooopp==00, mmaaxx__ffrraammeess==NNoonnee, ****kkwwaarrggss)_[_s_o_u_r_c_e_]_¶ │ │ │ │ Bases: luma.emulator.device.emulator │ │ │ │ Pseudo-device that acts like a physical display, except that it collects │ │ │ │ the images when the _d_i_s_p_l_a_y_(_) method is called, and on exit, assembles │ │ │ │ them into an animated GIF image. Supports 24-bit color depth, albeit with │ │ │ │ an indexed color palette. │ │ │ │ capabilities(wwiiddtthh, hheeiigghhtt, rroottaattee, mmooddee==''11'')_¶ │ │ │ │ Assigns attributes such as width, height, size and bounding_box │ │ │ │ correctly oriented from the supplied parameters. │ │ │ │ Parameters │ │ │ │ - * wwiiddtthh (_ii_nn_tt) – The device width. │ │ │ │ - * hheeiigghhtt (_ii_nn_tt) – The device height. │ │ │ │ - * rroottaattee (_ii_nn_tt) – An integer value of 0 (default), 1, 2 or │ │ │ │ + * wwiiddtthh (iinntt) – The device width. │ │ │ │ + * hheeiigghhtt (iinntt) – The device height. │ │ │ │ + * rroottaattee (iinntt) – An integer value of 0 (default), 1, 2 or │ │ │ │ 3 only, where 0 is no rotation, 1 is rotate 90° │ │ │ │ clockwise, 2 is 180° rotation and 3 represents 270° │ │ │ │ rotation. │ │ │ │ - * mmooddee (_ss_tt_rr) – The supported color model, one of "1", │ │ │ │ + * mmooddee (ssttrr) – The supported color model, one of "1", │ │ │ │ "RGB" or "RGBA" only. │ │ │ │ cleanup()_¶ │ │ │ │ Attempt to switch the device off or put into low power mode (this │ │ │ │ helps prolong the life of the device), clear the screen and close │ │ │ │ resources associated with the underlying serial interface. │ │ │ │ If persist is True, the device will not be switched off. │ │ │ │ This is a managed function, which is called when the python │ │ │ │ @@ -346,15 +346,15 @@ │ │ │ │ serial interface. │ │ │ │ contrast(vvaalluuee)_¶ │ │ │ │ Switches the display contrast to the desired level, in the range 0- │ │ │ │ 255. Note that setting the level to a low (or zero) value will not │ │ │ │ necessarily dim the display to nearly off. In other words, this │ │ │ │ method is NNOOTT suitable for fade-in/out animation. │ │ │ │ Parameters │ │ │ │ - lleevveell (_ii_nn_tt) – Desired contrast level in the range of 0-255. │ │ │ │ + lleevveell (iinntt) – Desired contrast level in the range of 0-255. │ │ │ │ data(ddaattaa)_¶ │ │ │ │ Sends a data byte or sequence of data bytes through to the │ │ │ │ delegated serial interface. │ │ │ │ display(iimmaaggee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ Takes an image, scales it according to the nominated transform, and │ │ │ │ stores it for later building into an animated GIF. │ │ │ │ hide()_¶ │ │ │ │ @@ -362,47 +362,47 @@ │ │ │ │ sleep mode. │ │ │ │ preprocess(iimmaaggee)_¶ │ │ │ │ Provides a preprocessing facility (which may be overridden) whereby │ │ │ │ the supplied image is rotated according to the device’s rotate │ │ │ │ capability. If this method is overridden, it is important to call │ │ │ │ the super method. │ │ │ │ Parameters │ │ │ │ - iimmaaggee (_PP_II_LL_.._II_mm_aa_gg_ee_.._II_mm_aa_gg_ee) – An image to pre-process. │ │ │ │ + iimmaaggee (PPIILL..IImmaaggee..IImmaaggee) – An image to pre-process. │ │ │ │ Returns │ │ │ │ A new processed image. │ │ │ │ Return type │ │ │ │ - _P_I_L_._I_m_a_g_e_._I_m_a_g_e │ │ │ │ + PIL.Image.Image │ │ │ │ show()_¶ │ │ │ │ Sets the display mode ON, waking the device out of a prior low- │ │ │ │ power sleep mode. │ │ │ │ to_surface(iimmaaggee, aallpphhaa==11..00)_¶ │ │ │ │ - Converts a _P_I_L_._I_m_a_g_e into a pygame.Surface, transforming it │ │ │ │ + Converts a PIL.Image into a pygame.Surface, transforming it │ │ │ │ according to the transform and scale constructor arguments. │ │ │ │ write_animation()_[_s_o_u_r_c_e_]_¶ │ │ │ │ ccllaassss luma.emulator.device.pygame(wwiiddtthh==112288, hheeiigghhtt==6644, rroottaattee==00, mmooddee==''RRGGBB'', │ │ │ │ ttrraannssffoorrmm==''ssccaallee22xx'', ssccaallee==22, ffrraammee__rraattee==6600, ****kkwwaarrggss)_[_s_o_u_r_c_e_]_¶ │ │ │ │ Bases: luma.emulator.device.emulator │ │ │ │ Pseudo-device that acts like a physical display, except that it renders │ │ │ │ to a displayed window. The frame rate is limited to 60FPS (much faster │ │ │ │ than a Raspberry Pi can achieve, but this can be overridden as │ │ │ │ necessary). Supports 24-bit color depth. │ │ │ │ pygame is used to render the emulated display window, and it’s event loop │ │ │ │ is checked to see if the ESC key was pressed or the window was dismissed: │ │ │ │ - if so _s_y_s_._e_x_i_t_(_) is called. │ │ │ │ + if so sys.exit() is called. │ │ │ │ capabilities(wwiiddtthh, hheeiigghhtt, rroottaattee, mmooddee==''11'')_¶ │ │ │ │ Assigns attributes such as width, height, size and bounding_box │ │ │ │ correctly oriented from the supplied parameters. │ │ │ │ Parameters │ │ │ │ - * wwiiddtthh (_ii_nn_tt) – The device width. │ │ │ │ - * hheeiigghhtt (_ii_nn_tt) – The device height. │ │ │ │ - * rroottaattee (_ii_nn_tt) – An integer value of 0 (default), 1, 2 or │ │ │ │ + * wwiiddtthh (iinntt) – The device width. │ │ │ │ + * hheeiigghhtt (iinntt) – The device height. │ │ │ │ + * rroottaattee (iinntt) – An integer value of 0 (default), 1, 2 or │ │ │ │ 3 only, where 0 is no rotation, 1 is rotate 90° │ │ │ │ clockwise, 2 is 180° rotation and 3 represents 270° │ │ │ │ rotation. │ │ │ │ - * mmooddee (_ss_tt_rr) – The supported color model, one of "1", │ │ │ │ + * mmooddee (ssttrr) – The supported color model, one of "1", │ │ │ │ "RGB" or "RGBA" only. │ │ │ │ cleanup()_¶ │ │ │ │ Attempt to switch the device off or put into low power mode (this │ │ │ │ helps prolong the life of the device), clear the screen and close │ │ │ │ resources associated with the underlying serial interface. │ │ │ │ If persist is True, the device will not be switched off. │ │ │ │ This is a managed function, which is called when the python │ │ │ │ @@ -415,43 +415,43 @@ │ │ │ │ serial interface. │ │ │ │ contrast(vvaalluuee)_¶ │ │ │ │ Switches the display contrast to the desired level, in the range 0- │ │ │ │ 255. Note that setting the level to a low (or zero) value will not │ │ │ │ necessarily dim the display to nearly off. In other words, this │ │ │ │ method is NNOOTT suitable for fade-in/out animation. │ │ │ │ Parameters │ │ │ │ - lleevveell (_ii_nn_tt) – Desired contrast level in the range of 0-255. │ │ │ │ + lleevveell (iinntt) – Desired contrast level in the range of 0-255. │ │ │ │ data(ddaattaa)_¶ │ │ │ │ Sends a data byte or sequence of data bytes through to the │ │ │ │ delegated serial interface. │ │ │ │ display(iimmaaggee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ - Takes a _P_I_L_._I_m_a_g_e and renders it to a pygame display surface. │ │ │ │ + Takes a PIL.Image and renders it to a pygame display surface. │ │ │ │ hide()_¶ │ │ │ │ Switches the display mode OFF, putting the device in low-power │ │ │ │ sleep mode. │ │ │ │ preprocess(iimmaaggee)_¶ │ │ │ │ Provides a preprocessing facility (which may be overridden) whereby │ │ │ │ the supplied image is rotated according to the device’s rotate │ │ │ │ capability. If this method is overridden, it is important to call │ │ │ │ the super method. │ │ │ │ Parameters │ │ │ │ - iimmaaggee (_PP_II_LL_.._II_mm_aa_gg_ee_.._II_mm_aa_gg_ee) – An image to pre-process. │ │ │ │ + iimmaaggee (PPIILL..IImmaaggee..IImmaaggee) – An image to pre-process. │ │ │ │ Returns │ │ │ │ A new processed image. │ │ │ │ Return type │ │ │ │ - _P_I_L_._I_m_a_g_e_._I_m_a_g_e │ │ │ │ + PIL.Image.Image │ │ │ │ show()_¶ │ │ │ │ Sets the display mode ON, waking the device out of a prior low- │ │ │ │ power sleep mode. │ │ │ │ to_surface(iimmaaggee, aallpphhaa==11..00)_¶ │ │ │ │ - Converts a _P_I_L_._I_m_a_g_e into a pygame.Surface, transforming it │ │ │ │ + Converts a PIL.Image into a pygame.Surface, transforming it │ │ │ │ according to the transform and scale constructor arguments. │ │ │ │ ********** _ll_uu_mm_aa_.._ee_mm_uu_ll_aa_tt_oo_rr_.._rr_ee_nn_dd_ee_rr_?¶ ********** │ │ │ │ ccllaassss luma.emulator.render.transformer(ppyyggaammee, wwiiddtthh, hheeiigghhtt, ssccaallee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ - Bases: _o_b_j_e_c_t │ │ │ │ + Bases: object │ │ │ │ Helper class used to dispatch transformation operations. │ │ │ │ identity(ssuurrffaaccee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ Fast scale operation that does not sample the results │ │ │ │ led_matrix(ssuurrffaaccee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ Transforms the input surface into an LED matrix (1 pixel = 1 LED) │ │ │ │ none(ssuurrffaaccee)_[_s_o_u_r_c_e_]_¶ │ │ │ │ No-op transform - used when scale = 1