8000 TileGrid position has some unknown transformation (and also we can't move) · Issue #1613 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
TileGrid position has some unknown transformation (and also we can't move) #1613
Closed
@ladyada

Description

@ladyada

this could be me not understanding tilegrid but when i subclass it to create shapes with outlines, it displays in the right spot, but the position is weirdly transformed?

download this:
https://github.com/ladyada/Adafruit_CircuitPython_Display_Shapes/blob/master/adafruit_display_shapes/rect.py
then run:

import board
from adafruit_display_shapes.rect import Rect

# Make the display context
splash = displayio.Group()
board.DISPLAY.show(splash)
rect = Rect(10, 10, 20, 20, fill=0xFF0000, outline=0x0000FF)
splash.append(rect)

print(rect.position)

while True:
    pass

red rect with blue outline appears, but position prints out as (13504, 8192) not (10,10)

Running Adafruit CircuitPython 1ba7610 on 2019-03-01;

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0