forked from ladyada/Adafruit_CircuitPython_Display_Shapes
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Hi there,
I've had a great couple of days experimenting with python (JavaScript dev here), CircuitPython and an M5Dial. Thanks for a great open source ecosystem.
Using the following code:
import displayio
from adafruit_display_shapes.arc import Arc
volumeGauge = displayio.Group()
foreColour = 0xff5400
bgColour = 0x2a2a2a
resolution = 25
for n in range(resolution):
angle = 270 / resolution
direction = 180 + 45 - (angle * n)
segment = Arc(
x = 120,
y = 120,
radius = 116,
arc_width = 8,
segments = 25,
angle = angle,
direction = direction - (angle / 2),
fill = bgColour,
outline = 0x000000,
)
volumeGauge.append(segment)
I've noticed a difference in the rendering of outline
depending on the display rotation.
It looks as expected when rotation is set to 0
(outline is creating the thin black tick marks on the gauge):
but when used along with board.DISPLAY.rotation = 180
, the outline doesn't seem to line up with the filled arc:
Thanks.
Metadata
Metadata
Assignees
Labels
No labels