{"id":21161177,"url":"https://github.com/hasnep/roc-turtle","last_synced_at":"2026-01-02T10:05:40.297Z","repository":{"id":255477909,"uuid":"840725495","full_name":"Hasnep/roc-turtle","owner":"Hasnep","description":"🐢 Turtle graphics in Roc","archived":false,"fork":false,"pushed_at":"2024-11-15T14:25:24.000Z","size":307,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T09:27:21.407Z","etag":null,"topics":["roc","roc-lang","turtle","turtle-graphics"],"latest_commit_sha":null,"homepage":"https://hasnep.github.io/roc-turtle","language":"Roc","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hasnep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-08-10T13:52:05.000Z","updated_at":"2024-12-02T01:16:21.000Z","dependencies_parsed_at":"2024-09-05T17:14:31.576Z","dependency_job_id":"c3b33d3a-2948-4b83-ab86-3283dff25286","html_url":"https://github.com/Hasnep/roc-turtle","commit_stats":null,"previous_names":["hasnep/roc-turtle"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasnep%2Froc-turtle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasnep%2Froc-turtle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasnep%2Froc-turtle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasnep%2Froc-turtle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hasnep","download_url":"https://codeload.github.com/Hasnep/roc-turtle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243606954,"owners_count":20318314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["roc","roc-lang","turtle","turtle-graphics"],"created_at":"2024-11-20T13:08:37.177Z","updated_at":"2026-01-02T10:05:35.259Z","avatar_url":"https://github.com/Hasnep.png","language":"Roc","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roc Turtle\n\nA pure Roc turtle library with no effects, the final drawing is converted to an SVG string and can be saved to a file for viewing.\n\n## Usage\n\nAdd the `roc-turtle` package to your header.\n\n```roc\napp [main] {turtle: \"...\"}\n```\n\nImport the `Turtle` module.\n\n```roc\nimport turtle.Turtle\n```\n\nCreate a `Turtle` using the `Turtle.new` function.\n\n```roc\nturtle = Turtle.new {}\n```\n\nUse functions like `Turtle.forward` and `Turtle.turn` to move the turtle.\n\n```roc\npath = turtle |\u003e Turtle.forward 1 |\u003e Turtle.turn (Num.pi / 4)\n```\n\nWhen your drawing is done, use the `Turtle.toSvg` function to convert it into an SVG string which you can output to a file.\n\n```roc\nsvgStr = Turtle.toSvg path { x: { from: -500, to: 500 }, y: { from: -500, to: 500 } }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasnep%2Froc-turtle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasnep%2Froc-turtle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasnep%2Froc-turtle/lists"}