foamyguy
b94d548cd1
Merge pull request #44 from FoamyGuy/circle_and_dot_fix
...
make circle and dot always use degrees internally
2024-12-12 13:22:09 -06:00
foamyguy
277983a836
fix for visible turtle location
2024-12-09 09:12:37 -06:00
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
591b805474
remove pylint disables
2024-12-04 10:16:11 -06:00
foamyguy
96222c3429
remove space
2024-12-04 10:12:15 -06:00
foamyguy
e921f796f1
make circle and dot always use degrees internally
2024-12-04 09:30:24 -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
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
RetiredWizard
9d09f16bb2
Remove depreciated displayio.show
2023-10-19 01:48:10 -04: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
Tekktrik
a30359b9d8
Run pre-commit
2023-05-10 22:47:08 -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
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
Alec Delaney
79828c040f
Update version string
2022-08-16 18:09:16 -04:00
foamyguy
28047a70f2
remove file opening and closing for ODBs
2022-02-19 11:15:07 -06:00
foamyguy
37e173e89d
updates to remove CP 6 fallback
2022-02-19 10:58:27 -06:00
foamyguy
cb3d4b5652
Merge pull request #25 from lesamouraipourpre/ondiskbitmap-changes
...
Update the pixel_shader usage of OnDiskBitmap
2022-02-19 10:35:07 -06:00
dherrada
27e8367bca
Linted
2021-11-05 03:30:16 -04:00
foamyguy
79ee37811c
fix heading angle table in docs
2021-09-04 12:18:55 -05:00
James Carr
15e766f51e
Update the pixel_shader usage of OnDiskBitmap
2021-07-11 15:53:21 +01:00
James Carr
16b231ac2a
Remove max_size parameter
2021-07-05 20:45:21 +01:00
dherrada
d4e87b4796
Ran pre-commit, added licenses
2021-01-12 14:28:40 -05:00
dherrada
01ab4cd0a0
Ran black, updated to pylint 2.x
2020-03-16 17:19:46 -04:00
Marius-450
c842228a03
I missed a del_bgpic in reset()
2020-03-06 09:08:25 -05:00
Marius-450
c6a5bcab14
merged set_bgpic and del_bgpic in bgpic function
2020-03-06 09:01:13 -05:00
Marius-450
a979fcfe47
pylint compliance (bis)
2020-03-06 07:46:44 -05:00
Marius-450
0c19bd06b3
pylint compliance
2020-03-06 07:06:53 -05:00
Marius-450
0d9c258db2
multiple improvements : memory, functionnality, consistency with documentation
2020-03-05 15:34:51 -05:00
caternuson
e48222b7b5
patch for Vec2D.__repr__
2019-10-20 18:57:20 -07:00
caternuson
2f7b1a13f2
external disp, remove deprecated and sleep
2019-10-15 11:42:42 -07:00
Dave Astels
07f7e2a631
Change logging level to INFO
2019-06-29 15:31:31 -04:00
Dave Astels
b32639260e
Revert "Cleanup instrumentation"
...
This reverts commit cbb23cb564 .
2019-06-29 15:30:27 -04:00
Dave Astels
cbb23cb564
Cleanup instrumentation
2019-06-29 15:25:04 -04:00
Dave Astels
8c0a0ecce3
Various tweaks and cleanups
2019-06-28 16:28:48 -04:00
Dave Astels
ad49f2a981
Add circle and support
2019-06-27 13:47:28 -04:00
Dave Astels
4ffcc79432
Move circle method above dot support methods
2019-06-27 13:15:40 -04:00
Dave Astels
a0f37cc267
Remove 'Not implemented' note from docstring
2019-06-27 13:15:10 -04:00
Dave Astels
14d8d49b7e
Clean up pylint complaints
2019-06-27 12:46:22 -04:00
Dave Astels
ad672ff9d9
pylint tweaks
2019-06-27 12:34:49 -04:00
Dave Astels
2a17db56f6
Clean up disk code for use of dot
2019-06-27 12:25:29 -04:00
Dave Astels
bf04d413e0
Get things working well
2019-06-27 11:49:16 -04:00