adafruit / adafruit/Adafruit_CircuitPython_turtle

graphics scaling error, deeper than turtle graphics?

Open
#47 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I am using a Circuit Playground Bluefruit with TFT Gizmo, adafruit-circuitpython-bundle-9.x-mpy-20241206.zip, and the "Turtle Gizmo Setup" code provided by John Park at https://learn.adafruit.com/turtle-graphics-gizmo/. See the attached file renamed from .txt to .py. From the code:

Issue: On a 240x240 pixel display with (0.0, 0.0) at the center, the
border pixels should include x,y values of 119.1 to 119.9 (actually
a slightly wider range, but at least those values). The following
code should make a visible square in both cases and does not. The
119.9 case is missing the right side of the square.

This was reduced from a more complicated program that required the
correct scaling of the 240x240 display including the border pixels.

[turtle_scaling_issue.txt](https://github.com/user-attachments/files/18049896/turtle_scaling_issue.txt)
![20241207_131038](https://github.com/user-attachments/assets/f0e8c7d4-4894-425d-bcf8-0a3749d9ba19)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading turtle_scaling_issue.txt and the Turtle Gizmo Setup example, then reproduce the two square cases on the 240x240 TFT Gizmo display. Done means both cases render a visible square, including the right side for the 119.9 boundary value, while preserving the intended border scaling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.