You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Circuitpyhton 9.2.2 the following code and this PNG image, when showed on a screen (in this case a matrix portal so we can see the pixels), the first line is black, and the other lines are all shifted one line down, and the last line is missing. This does not happen with a BMP (on the right). I haven't had time to do other tests.
Test image:
importdisplayioimportvectorioimportadafruit_imageload# import board# display = board.DISPLAYfromadafruit_matrixportal.matriximportMatrixmatrix=Matrix()
display=matrix.displaydisplay.rotation=180display.root_group=displayio.Group()
color_palette=displayio.Palette(1)
color_palette[0] =0x404000# dark background for the Matrix Portaldisplay.root_group.append(vectorio.Rectangle(
pixel_shader=color_palette,
width=display.width, height=display.height,
))
image, palette=adafruit_imageload.load(f"test_pattern.png")
display.root_group.append(displayio.TileGrid(image, pixel_shader=palette, x=2, y=2))
whileTrue:
pass
The text was updated successfully, but these errors were encountered:
Using Circuitpyhton 9.2.2 the following code and this PNG image, when showed on a screen (in this case a matrix portal so we can see the pixels), the first line is black, and the other lines are all shifted one line down, and the last line is missing. This does not happen with a BMP (on the right). I haven't had time to do other tests.
Test image:
The text was updated successfully, but these errors were encountered: