{"id":25195235,"url":"https://github.com/bhabishworgrg/turtle-graphics","last_synced_at":"2026-05-26T07:03:58.678Z","repository":{"id":276366029,"uuid":"823774120","full_name":"Bhabishworgrg/turtle-graphics","owner":"Bhabishworgrg","description":"a paint tool to control and draw with a turtle using commands","archived":false,"fork":false,"pushed_at":"2025-02-07T19:53:34.000Z","size":51,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T02:49:30.459Z","etag":null,"topics":["java","java-swing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bhabishworgrg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-07-03T17:27:26.000Z","updated_at":"2025-03-31T12:03:12.000Z","dependencies_parsed_at":"2025-02-09T13:15:33.213Z","dependency_job_id":null,"html_url":"https://github.com/Bhabishworgrg/turtle-graphics","commit_stats":null,"previous_names":["bhabishworgrg/turtle-graphics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bhabishworgrg/turtle-graphics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhabishworgrg%2Fturtle-graphics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhabishworgrg%2Fturtle-graphics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhabishworgrg%2Fturtle-graphics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhabishworgrg%2Fturtle-graphics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bhabishworgrg","download_url":"https://codeload.github.com/Bhabishworgrg/turtle-graphics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhabishworgrg%2Fturtle-graphics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33508318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["java","java-swing"],"created_at":"2025-02-10T00:50:52.810Z","updated_at":"2026-05-26T07:03:58.672Z","avatar_url":"https://github.com/Bhabishworgrg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Turtle Graphics Program\nThis project is a simple graphics tool implemented in Java using the Swing classes. It allows users to type in simple commands to move a turtle around the screen, drawing lines as it moves. This project was developed as part of an academic coursework.\n\n\n## Table of Contents\n- [Prerequisites](#prerequisites)\n- [Build](#build)\n- [Running](#running-the-projects)\n- [Usage](#features)\n- [License](#license)\n- [Acknowledgements](#acknowledgements)\n- [Get in Touch](#get-in-touch)\n\n\n## Prerequisites\nTo run the application, you need to have the following installed:\n- [JDK](https://www.oracle.com/in/java/technologies/downloads/)\n- [Maven](https://maven.apache.org/download.cgi)\n- [LBUGraphics.jar v4.5](https://github.com/LBU-OOP/OOPturtleGraphicsLibrary/blob/db72a5f59815045516ea444bd8680b1b4cc26e33/LBUGraphics.jar)\n\n\n## Build\n- Clone the repository:\n```bash\ngit clone https://github.com/Bhabishworgrg/turtle-graphics.git\n```\n- Add LBUGraphics:\n```bash\ncd turtle-graphics\nmkdir lib\nmv path/to/LBUGraphics.jar lib/\n```\n- Install it locally:\n```bash\nmvn install:install-file \\\n    -Dfile=lib/LBUGraphics.jar \\\n    -DgroupId=uk.ac.leedsbeckett.oop \\\n    -DartifactId=LBUGraphics \\\n    -Dversion=4.5 \\\n    -Dpackaging=jar\n```\n- Compile the code:\n```bash\nmvn package\n```\n\n\n## Running\nTo run the application, execute the command:\n```bash\njava -jar target/turtle-graphics-1.0.1.jar\n```\n\n\n## Usage\nThe following commands are available to manipulate the turtle:\n- **Pen Commands**:\n  - `penup`: Lifts the pen from the canvas, so that movement does not get shown.\n  - `pendown`: Places the pen down on the canvas so movement gets shown as a drawn line.\n  - `pencolour \u003cr\u003e,\u003cg\u003e,\u003cb\u003e`:\tMakes the RGB colour from \\\u003cr\u003e,\\\u003cg\u003e and \\\u003cb\u003e parameters and sets the pencolour to the made colour.\n  - `penwidth \u003cwidth\u003e`:\tSets the pen’s width to specified width.\n\n- **Movement Commands**:\n  - `turnleft \u003cdegrees\u003e`: Turn \\\u003cdegrees\u003e to the left.\n  - `turnright \u003cdegrees\u003e`: Turn \\\u003cdegrees\u003e to the right.\n  - `forward \u003cdistance\u003e`: Move forward the specified distance.\n  - `backward \u003cdistance\u003e`: Move backwards the specified distance.\n  - `position \u003cx\u003e,\u003cy\u003e`:\tPlaces the turtle in the specified coordinates.\n\n- **Color Commands**:\n  - `black`: Sets the pen color to black.\n  - `green`: Sets the pen color to green.\n  - `red`: Sets the pen color to red.\n  - `white`: Sets the pen color to white.\n\n- **Reset and Clear**:\n  - `reset`: Resets the canvas and the pen to the initial state.\n  - `clear`: Clears the display.\n\n- **Saving and Loading**:\n  - `Save`: Allows the user to save the image and the set of commands that the user has typed in.\n  - `Load`: Allows the user load the saved image and/or commands.\n\n- **Drawing Commands**:\n  - `about`:\tDraws a simple graphic on the canvas and reports the version number of the class along with my name.\n  - `square \u003clength\u003e`:\tDraws a square of specified length. The turtle, however, remains in the original position.\n  - `triangle \u003cside\u003e`:\tDraws equilateral triangles of specified side.\n  - `triangle \u003cs1\u003e,\u003cs2\u003e,\u003cs3\u003e`:\tDraws a triangle of specified sides.\n  - `circle \u003cradius\u003e`:\tDraws a circle of specified radius.\n  - `rectangle \u003clength\u003e,\u003cwidth\u003e`:\tDraws a rectangle of specified length and width.\n\nCheck `Help` menu (Only works for Windows as of now) for more detailed information. \n\n\n## License\nThis repository is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n\n\n## Acknowledgements\nProfessor Duncan Mullier: Module Leader for the Object-Oriented Programming course.\n\nLBUGraphics: Provided JAR file for graphics functionalities.\n\n\n## Get in Touch\nFeel free to reach out if you want to collaborate on a project, have a question, or just want to connect!\n- LinkedIn: [in/bhabishwor-gurung](https://www.linkedin.com/in/bhabishwor-gurung/)\n- Email: [bhabishworgrg@gmail.com](mailto:bhabishworgrg@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhabishworgrg%2Fturtle-graphics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhabishworgrg%2Fturtle-graphics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhabishworgrg%2Fturtle-graphics/lists"}