{"id":17949927,"url":"https://github.com/haythamasalama/graphics","last_synced_at":"2025-08-16T04:32:08.521Z","repository":{"id":49064925,"uuid":"468069296","full_name":"Haythamasalama/graphics","owner":"Haythamasalama","description":"🖼️ Java graphics example code repository.","archived":false,"fork":false,"pushed_at":"2023-08-16T14:53:56.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-29T10:10:37.945Z","etag":null,"topics":["affinetransform","awt","graphics","graphics-java","graphics2d","java","polygon"],"latest_commit_sha":null,"homepage":"https://github.com/HaythamaSalama/graphics","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Haythamasalama.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}},"created_at":"2022-03-09T19:40:52.000Z","updated_at":"2023-07-07T18:29:52.000Z","dependencies_parsed_at":"2023-08-16T17:27:18.246Z","dependency_job_id":null,"html_url":"https://github.com/Haythamasalama/graphics","commit_stats":null,"previous_names":["haythamasalama/graphics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haythamasalama%2Fgraphics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haythamasalama%2Fgraphics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haythamasalama%2Fgraphics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haythamasalama%2Fgraphics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Haythamasalama","download_url":"https://codeload.github.com/Haythamasalama/graphics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230010642,"owners_count":18159221,"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":["affinetransform","awt","graphics","graphics-java","graphics2d","java","polygon"],"created_at":"2024-10-29T09:35:38.885Z","updated_at":"2024-12-16T18:39:46.363Z","avatar_url":"https://github.com/Haythamasalama.png","language":"Java","funding_links":["https://www.buymeacoffee.com/haythamasalama"],"categories":[],"sub_categories":[],"readme":"# Java Graphic \n![github](https://user-images.githubusercontent.com/37311945/162650428-df026403-68ba-48bb-b88a-fc62dc9cb430.jpg)\n\n\n\u003e Rep For Graphics Example on Java Using Graphic and Graphics2D Class  \n\n## Contents \n\n- [Install](#install)\n- [How To Use](#how-to-use)\n- [Line](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Line)\n- [Rectangle](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Rectangle)\n- [Oval](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Oval)\n- [Arc](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Arc)\n- [Animations](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Animations)\n- [Polygon](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Polygon)\n- [Graphics2D](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Graphics2D)\n- [Fractals](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Fractals)\n- [Helpers](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Helpers)\n- [Contributing](#Contributing)\n- [License](#License)\n\n## Install\n\n```sh\n$ git clone https://github.com/HaythamaSalama/graphic-java\n```\n\n## How To Use\n\n* After install the project , the structure folder like this :\n\n![image](https://user-images.githubusercontent.com/37311945/163044109-ecce2293-1e92-4d61-af81-c82e1f5e4f85.png)\n\n* Every class that contains functions that draw something for example  `Arc`  Class that contains `circle` , `example1`\n\n![image](https://user-images.githubusercontent.com/37311945/163045542-72ad07d3-c121-4f89-95cd-bd4d80301231.png)\n\n* If you need to draw a specific function or show the output put the function on `paint` functon to show the output. by default, all functions exist on `paint` but it's committed \n \n example this is paint method on `Oval` Class  you need to show the output the `example11()` : \n  \n  Before : \n  \n  ```java\n@Override\npublic void paint(Graphics g) {\n    super.paint(g);\n//    this.circle(g);\n//    this.oval(g);\n//    this.example3(g);\n//    this.example4(g);\n//    this.example5(g);\n//    this.example6(g);\n//    this.example7(g);\n//    this.example8(g);\n//    this.example9(g);\n//    this.example10(g);\n//    this.example11(g);\n}\n```\n  \n After : \n    \n```java\n@Override\npublic void paint(Graphics g) {\n    super.paint(g);\n//    this.circle(g);\n//    this.oval(g);\n//    this.example3(g);\n//    this.example4(g);\n//    this.example5(g);\n//    this.example6(g);\n//    this.example7(g);\n//    this.example8(g);\n//    this.example9(g);\n//    this.example10(g);\n   this.example11(g);\n}\n```\n\n ## ❤  Sponsor me if you find the work valuable\n\n\u003ca href=\"https://www.buymeacoffee.com/haythamasalama\" target=\"_blank\"\u003e\n\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-violet.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\n\u003c/a\u003e\n\n## Contributing\n\nPull requests and stars are always welcome.\n\n## License\n\nCopyright © 2022, [Haytham Salama](https://github.com/haythamasalama).\nReleased under the [MIT License](LICENSE).\n\n***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaythamasalama%2Fgraphics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaythamasalama%2Fgraphics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaythamasalama%2Fgraphics/lists"}