{"id":20656761,"url":"https://github.com/bensouchet/polygons","last_synced_at":"2026-02-28T19:01:29.816Z","repository":{"id":79782381,"uuid":"58006470","full_name":"BenSouchet/polygons","owner":"BenSouchet","description":"Personal Project - Graphic - Polygons Explorer","archived":false,"fork":false,"pushed_at":"2016-10-25T09:08:10.000Z","size":91,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T06:55:50.251Z","etag":null,"topics":["generator","gui","polygons"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenSouchet.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":"2016-05-03T22:50:04.000Z","updated_at":"2025-04-21T09:24:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"d23601b1-58f1-4a38-b824-479b07b54709","html_url":"https://github.com/BenSouchet/polygons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BenSouchet/polygons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fpolygons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fpolygons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fpolygons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fpolygons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenSouchet","download_url":"https://codeload.github.com/BenSouchet/polygons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSouchet%2Fpolygons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29948228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["generator","gui","polygons"],"created_at":"2024-11-16T18:17:11.589Z","updated_at":"2026-02-28T19:01:29.798Z","avatar_url":"https://github.com/BenSouchet.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polygons\n\nPolygons is a tiny C program developed in my free time at 42 school for generating all polygons from 1 to 360 sides.\n\u003cimg align=\"center\" src=\"http://i.imgur.com/y2sxbI0.png\" width=\"100%\" /\u003e\nSeveral options are available (see [Keyboard shortcuts](https://github.com/BenjaminSouchet/Polygons/blob/master/README.md#keyboard-shortcuts) section for more infos) :\n* Zoom and unzoom\n* Rotate the polygon\n* Edit the shape of the polygon\n* Edit the position of all odd and/or even vertex\n* Choose from edge or fill for the display of the poly\n* Navigate between polygons with 1 to 360 sides\n\n## Install \u0026 launch\n```bash\ngit clone https://github.com/BenjaminSouchet/Polygons.git ~/Polygons\ncd ~/Polygons \u0026\u0026 ./polygons 5\n```\nYou can also launch the program with a parameter. It's the number of sides you want for the polygon at the execution of the program. This parameter as to be between 1 and 360 included.\u003cbr /\u003e\nExemple :\n```bash\n./polygons 10\n```\n\n## Keyboard shortcuts\n\n\u003ctable width=\"100%\"\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003ctd width=\"100%\" height=\"60px\" align=\"center\" cellpadding=\"0\"\u003e\n\u003cstrong\u003eDescription\u003c/strong\u003e\n\u003c/td\u003e\n\u003ctd width=\"100%\" align=\"center\" cellpadding=\"0\"\u003e\n\u003cspan style=\"width:50px\"\u003e\u0026nbsp;\u003c/span\u003e\u003cstrong\u003eKey(s)\u003c/strong\u003e\u003cspan style=\"width:50px\"\u003e\u0026nbsp;\u003c/span\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eClose the program (aka quit/exit)\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;esc\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eReset all the changes made since the beginning\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;clear\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eIncrease the global size of the polygon (aka zoom)\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;+\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eDecrease the global size of the polygon (aka unzoom)\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;-\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eIncrease the height of the polygon (aka height stretch)\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;▲\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eDecrease the height of the polygon (aka height shrink)\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;▼\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eIncrease the width of the polygon (aka width stretch)\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;►\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eDecrease the width of the polygon (aka width shrink)\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;◄\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eFill or unfill the polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;shift\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eIncrease the position of all odd points of the polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;W\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eDecrease the position of all odd points of the polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;Q\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eIncrease the position of all even points of the polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;S\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eDecrease the position of all even points of the polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;A\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eClockwise rotation of the polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;X\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eCounter clockwise rotation of the polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;Z\u0026nbsp;\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003ePrevious polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u003ccenter\u003e\u0026nbsp;page\u0026nbsp;\u003cbr /\u003e up\u003c/center\u003e\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\" height=\"30px\"\u003eNext polygon\u003c/td\u003e\n\u003ctd valign=\"top\" align=\"center\"\u003e\u003ckbd\u003e\u0026nbsp;page\u0026nbsp;\u003cbr /\u003e down\u003c/kbd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\n## Contact \u0026 contribute\nIf you want to contact me, or fix/improve Polygons, just send me a mail at **bsouchet@student.42.fr**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensouchet%2Fpolygons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbensouchet%2Fpolygons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensouchet%2Fpolygons/lists"}