No description
Find a file
Jeff Epler 614e9e2b4f Account for fractions of a pixel when drawing
Previously, the endpoint of the line was always moved
along in increments of 1 pixel, so that the endpoint would always be
rounded down. This could accumulate to give quite large differences
from what the program intended.

Ensure that "goto" always ends up storing the floating point endpoints
and that the line is drawn from the rounded-integer starting coordinate
and rounded-integer ending coordinate.

This makes the 3 test lines in the OP's "turtle_truncate.txt" example
be the same length.

Closes: #41
2024-12-04 18:57:14 -06:00
.github Add upload url to release action 2023-01-19 23:49:52 -05:00
docs remove deprecated get_html_theme_path() call 2024-10-07 14:41:49 -05:00
examples Merge pull request #34 from adafruit/tannewt-fix-koch 2023-07-29 10:35:03 -05:00
LICENSES Ran pre-commit, added licenses 2021-01-12 14:28:40 -05:00
.gitignore adding type annotations for adafruit_turtle.py 2023-04-27 08:47:11 -07:00
.pre-commit-config.yaml Update pre-commit hooks 2023-05-10 15:21:52 -04:00
.pylintrc Update .pylintrc, fix jQuery for docs 2023-05-23 21:16:31 -04:00
.readthedocs.yaml Fixed readthedocs build 2022-02-15 11:56:28 -05:00
adafruit_turtle.py Account for fractions of a pixel when drawing 2024-12-04 18:57:14 -06:00
CODE_OF_CONDUCT.md Ran pre-commit, added licenses 2021-01-12 14:28:40 -05:00
LICENSE Add cookiecutter output 2019-06-24 12:05:46 -04:00
optional_requirements.txt Switched to pyproject.toml 2022-08-08 22:05:55 -04:00
pyproject.toml Update version string 2022-08-16 18:09:16 -04:00
README.rst Added Black formatting badge 2022-08-02 17:01:12 -04:00
README.rst.license Ran pre-commit, added licenses 2021-01-12 14:28:40 -05:00
requirements.txt Switched to pyproject.toml 2022-08-08 22:05:55 -04:00

SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries

SPDX-License-Identifier: MIT