{"id":29690254,"url":"https://github.com/oonap0oo/python-and-turtle","last_synced_at":"2026-07-13T22:31:23.536Z","repository":{"id":303975386,"uuid":"1017361852","full_name":"oonap0oo/Python-and-Turtle","owner":"oonap0oo","description":"Projects using CPython and Turtle graphics","archived":false,"fork":false,"pushed_at":"2025-09-07T13:39:34.000Z","size":40988,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-07T14:39:31.625Z","etag":null,"topics":["cpython","python","python3","turtle-graphics","turtle-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oonap0oo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-10T12:19:47.000Z","updated_at":"2025-09-07T13:39:37.000Z","dependencies_parsed_at":"2025-07-18T16:30:00.748Z","dependency_job_id":"41acd871-6aa0-46e6-8fa4-4c332c5efa4f","html_url":"https://github.com/oonap0oo/Python-and-Turtle","commit_stats":null,"previous_names":["oonap0oo/python-and-turtle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oonap0oo/Python-and-Turtle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oonap0oo%2FPython-and-Turtle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oonap0oo%2FPython-and-Turtle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oonap0oo%2FPython-and-Turtle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oonap0oo%2FPython-and-Turtle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oonap0oo","download_url":"https://codeload.github.com/oonap0oo/Python-and-Turtle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oonap0oo%2FPython-and-Turtle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35439213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpython","python","python3","turtle-graphics","turtle-python"],"created_at":"2025-07-23T06:06:29.964Z","updated_at":"2026-07-13T22:31:23.519Z","avatar_url":"https://github.com/oonap0oo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-and-Turtle\nProjects using CPython and Turtle graphics\n\n* [tree_turtle_random2.py](https://github.com/oonap0oo/Python-and-Turtle#recursive_tree_turtle_random2py)\nThis script draws recursively generated trees. A lot of the tree's parameters have random variation.\n* [truchet_tiles2.py](https://github.com/oonap0oo/Python-and-Turtle#truchet_tiles2py)\nThis script shows a series of patterns of Truchet Tiles.The tiles are drawn using the Turtle libary. All patterns are made from 4 different tiles.\n* [truchet_tiles2_random.py](https://github.com/oonap0oo/Python-and-Turtle#truchet_tiles2_randompy)\nRandomly generated Truchet Tiles using complementery tiles for pleasing result.\n* [spiral.py](https://github.com/oonap0oo/Python-and-Turtle#spiralpy)\nAn animated spiral effect using Turtle graphics\n* [turtle_python_logo.py](https://github.com/oonap0oo/Python-and-Turtle#turtle_python_logopy)\nThis script defines a fucntion to draw an ellipse using Turtle graphics. Turtle graphics does have a circle function but no ellipse. The ellipse function is then used to draw a python logo suing Turtle graphics.\n* [sierpinsky_turtle_cpython.py](https://github.com/oonap0oo/Python-and-Turtle#sierpinsky_turtle_cpythonpy)\nThis script draws a Sierpinsky triangle recursively using turtle.\n* [phyllotaxis2.py](https://github.com/oonap0oo/Python-and-Turtle#phyllotaxis2py)\nThis script produces images generated using the Vogel formula coming from the field of Phyllotaxis. It shows combinations of symbols and color sets.\n* [orbits.py](https://github.com/oonap0oo/Python-and-Turtle#orbitspy) This code calculates and draws some trajectories of objects around the earth. The orbits are calculated from the acceleration based on Newton's law of universal gravitation\n* [polygon2.py](https://github.com/oonap0oo/Python-and-Turtle#polygon2py) This code displays an animated image consisting of sets of polygons. The number of polygons as well as their number of corner points are increased and descreased. \n\n\n\n## [recursive_tree_turtle_random2.py](recursive_tree_turtle_random2.py)\n\n\n![recursive_tree1.gif](recursive_tree1.gif)\n\nThis script draws recursively generated trees. \n\nA lot of the tree's parameters have random variation. \n\nThe code uses Turtle graphics for drawing and the timer function.\n\n## [truchet_tiles2.py](truchet_tiles2.py)\n\n![truchet_tiles.gif](truchet_tiles.gif)\n\nThis script shows a series of patterns of Truchet Tiles.\n\nThe tiles are drawn using the Turtle libary. All patters are made from 4 different tiles.\n\nThe patterns are defined as rows and columns of tile numbers, for this nested tuples are used:\n\n    pattern_X = (\n        (2,4,3,4,4,2),\n        (2,1,2,2,4,4),\n        (3,4,4,2,2,4),\n        (2,2,4,4,2,1),\n        (4,2,2,4,3,4),\n        (4,4,2,1,2,2)\n        )\n\n## [truchet_tiles2_random.py](truchet_tiles2_random.py)\n\n\n![truchet_tiles2_random.gif](truchet_tiles2_random.gif)\n\nRandomly generated Truchet Tiles using complementery tiles for pleasing result.\n\ncode of version which loops automatically through random patterns, mouse click stops script:\n![truchet_tiles2_random.py](truchet_tiles2_random.py)\n\ncode of version which saves pattern to text file when \u003ca\u003e key is pressed, loops to next random patterns with mouse click:\n![truchet_tiles2_random_with_save.py](truchet_tiles2_random_with_save.py)\n\n## [spiral.py](spiral.py)\n\n\n![spiral.gif](spiral.gif)\n\nAn animated spiral effect using Turtle graphics\n\n## [turtle_python_logo.py](turtle_python_logo.py)\n\n\n![turtle_python_logo_screenshot.png](turtle_python_logo_screenshot.png)\n\nThis script defines a fucntion to draw an ellipse using Turtle graphics.\n\nTurtle graphics does have a circle function but no ellipse.\n\nThe ellipse function is then used to draw a python logo suing Turtle graphics.\n\n## [sierpinsky_turtle_cpython.py](sierpinsky_turtle_cpython.py)\n\n![sierpinsky_turtle_cpython_screenshot.png](sierpinsky_turtle_cpython_screenshot.png)\n\nThis script draws a Sierpinsky triangle recursively using turtle. \n\nThis one makes use extra functionality in CPython's turtle on the PC, such as drawing filled shapes. \n\nThe code shows several triangles using  successively deeper recursion.\n\n## [phyllotaxis2.py](phyllotaxis2.py)\n\n![phyllotaxis2_recording.gif](phyllotaxis2_recording.gif)\n\nThis script produces images generated using the Vogel formula coming from the field of Phyllotaxis.\n\n    φ = n * 137.5\n    r = c * √n\n    n: index of element\n    c: constant\n    r: radius\n    φ: azimith\n\nIt shows combinations of symbols and color sets.\n\n## [orbits.py](orbits.py)\n\n![orbits_screenshot.png](orbits_screenshot.png)\n\nThis code calculates and draws some trajectories of objects around the earth in two dimensions x,y\n\n*  Geostationary orbit\n*  Elliptical orbits\n*  Hyperbolic trajectories\n\nThe orbits are calculated from the acceleration based on Newton's law of universal gravitation.\n\nNewton's law of universal gravitation\n\n    F = G * m1 * m2 / r**2\n\nOn an object in orbit\n\n    F_attraction = - G * mass_earth * mass_object / r_distance**2\n\n(F in opposite direction of r)\n\nNewton's second law of motion\n\n    F = m.a =\u003e a = F / m\n    =\u003e a_object = F_attraction / mass_object\n\nAcelleration due to gravity\n\n    =\u003e a_object = - G * mass_earth / r_distance**2\n\nThe code uses Turtle graphics for drawing.\n\nCalculations are done just using the math library.\n\n## [polygon2.py](polygon2.py)\n\n![polygon2_recording.gif](polygon2_recording.gif)\n\nThis code displays an animated image consisting of sets of polygons. \n\nThe number of polygons as well as their number of corner points are increased and descreased. \n\nAlso the color of the segments is variable.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foonap0oo%2Fpython-and-turtle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foonap0oo%2Fpython-and-turtle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foonap0oo%2Fpython-and-turtle/lists"}