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
foamyguy
06de267b3a
Merge pull request #42 from FoamyGuy/standard_color_docs
...
Standard color docs
2024-12-04 08:19:24 -06:00
foamyguy
bc7315d4b6
Merge pull request #43 from FoamyGuy/mode_default
...
default to "standard" mode
2024-12-04 08:19:12 -06:00
foamyguy
f2ae512e0e
default to "standard" mode
2024-12-02 17:24:48 -06:00
foamyguy
0c57fd42dc
format
2024-12-02 16:06:44 -06:00
foamyguy
ebd591df45
remove duplicate color name
2024-12-02 16:02:41 -06:00
foamyguy
eeac41fe02
list standard colors in the docstrings
2024-12-02 15:58:23 -06:00
foamyguy
057d7fd9fa
remove deprecated get_html_theme_path() call
...
Signed-off-by: foamyguy <foamyguy@gmail.com>
2024-10-07 14:41:49 -05:00
foamyguy
5a170cb7b1
unpin sphinx and add sphinx-rtd-theme to docs reqs
...
Signed-off-by: foamyguy <foamyguy@gmail.com>
2023-12-04 09:54:58 -06:00
Scott Shawcroft
17a80d38a7
Merge pull request #36 from RetiredWizard/removeShow
...
Remove depreciated displayio.show
2023-10-19 09:11:19 -07:00
RetiredWizard
9d09f16bb2
Remove depreciated displayio.show
2023-10-19 01:48:10 -04:00
foamyguy
d4477d1126
"fix rtd theme
...
"
2023-09-18 16:24:09 -05:00
foamyguy
f632227871
Merge pull request #35 from rrahkola/dev/add_type_annotations
...
adding type annotations for adafruit_turtle.py
2023-09-04 11:03:57 -05:00
foamyguy
d4a599a928
code format, use more specific types than Any
2023-09-04 10:57:38 -05:00
foamyguy
f03cfc7fa1
merge main, handle PR feedback
2023-09-04 10:50:19 -05:00
foamyguy
53d222e3f5
Merge branch 'main' into dev/add_type_annotations
...
# Conflicts:
# adafruit_turtle.py
2023-09-04 10:48:48 -05:00
foamyguy
93ea97b2c8
Merge pull request #34 from adafruit/tannewt-fix-koch
...
Fix koch examples
2023-07-29 10:35:03 -05:00
Tekktrik
751760ebd7
Update .pylintrc, fix jQuery for docs
...
Signed-off-by: Tekktrik <tekktrik@gmail.com>
2023-05-23 21:16:31 -04:00
Tekktrik
a30359b9d8
Run pre-commit
2023-05-10 22:47:08 -04:00
Tekktrik
141d80ce8f
Update pre-commit hooks
...
Signed-off-by: Tekktrik <tekktrik@gmail.com>
2023-05-10 15:21:52 -04:00
Rauha Rahkola
012c3b3a9c
revert some unnecessary refactoring
2023-04-27 08:55:30 -07:00
Rauha Rahkola
614b602f8d
adding type annotations for adafruit_turtle.py
2023-04-27 08:47:11 -07:00
Scott Shawcroft
480352b7b9
Fix overlayed koch
2023-04-19 10:57:41 -07:00
Scott Shawcroft
d70d57abca
Fix koch example
2023-04-19 10:55:38 -07:00
Alec Delaney
2ab650e364
Add upload url to release action
...
Signed-off-by: Alec Delaney <89490472+tekktrik@users.noreply.github.com>
2023-01-19 23:49:52 -05:00
Alec Delaney
0ac3837b82
Add .venv to .gitignore
...
Signed-off-by: Alec Delaney <89490472+tekktrik@users.noreply.github.com>
2022-11-30 19:38:47 -05:00
Kattni
a9a5385902
Merge pull request #32 from tekktrik/dev/fix-pylint-errors
...
Fix pylint errors
2022-11-08 15:29:45 -05:00
Alec Delaney
689c01102c
Fix pylint errors
2022-11-07 21:07:36 -05:00
Alec Delaney
298f6de310
Update .pylintrc for v2.15.5
2022-11-04 18:34:33 -04:00
Alec Delaney
f97bae7826
Fix release CI files
2022-11-04 09:12:46 -04:00
Alec Delaney
4bdae92772
Update pylint to 2.15.5
2022-11-04 08:15:21 -04:00
Alec Delaney
4fb06f4482
Updated pylint version to 2.13.0
2022-11-04 00:47:01 -04:00
Alec Delaney
332a947519
Switching to composite actions
2022-11-04 00:02:50 -04:00
foamyguy
b7b438657e
Merge pull request #31 from shulltronics/cpython-compatibility
...
CPython compatibility fix
2022-10-03 17:57:41 -05:00
Carsten Thue-Bludworth
47f94f2aa8
Merge pull request #1 from FoamyGuy/foamyguy_cpython_compat
...
CPython compatibility
2022-10-01 21:43:14 -04:00
foamyguy
12e4ec2756
Merge remote-tracking branch 'shulltronics/cpython-compatibility' into foamyguy_cpython_compat
...
# Conflicts:
# adafruit_turtle.py
2022-10-01 11:17:30 -05:00
foamyguy
87ee248a95
remove unused super init
2022-10-01 11:11:26 -05:00
foamyguy
c146d6bb77
allow import outside top for board
2022-10-01 11:10:10 -05:00
foamyguy
5acb2d0585
only import board if we are going to try to use builtin display
2022-10-01 11:04:45 -05:00
foamyguy
017591b4d4
try has-a tuple instead of is-a tuple for Vec2D
2022-10-01 10:53:31 -05:00
Carsten Thue-Bludworth
8c3267999c
Removed author info
2022-10-01 10:50:56 -04:00
Carsten Thue-Bludworth
cf9a11aac8
Fixed test errors by implementing __getitem__ method for Vec2D
2022-09-27 23:30:15 -04:00
Carsten Thue-Bludworth
0161017036
Actually added author info
2022-09-27 22:30:59 -04:00
Carsten Thue-Bludworth
b197cd6135
Added author info and ran through black
2022-09-27 22:27:30 -04:00
Carsten Thue-Bludworth
30c0988eb6
Fixed CPython compatibility
2022-09-27 22:20:03 -04:00
Alec Delaney
9f23b464df
Use year duration range for copyright attribution
2022-08-23 17:26:23 -04:00
Alec Delaney
6f672a2351
Keep copyright up to date in documentation
2022-08-22 21:36:33 -04:00
Alec Delaney
2a993cbc38
Fix version strings in workflow files
2022-08-16 21:09:16 -04:00
Alec Delaney
79828c040f
Update version string
2022-08-16 18:09:16 -04:00
Alec Delaney
d1e81525cd
Add setuptools-scm to build system requirements
...
Signed-off-by: Alec Delaney <tekktrik@gmail.com>
2022-08-09 13:33:04 -04:00