{"id":19732813,"url":"https://github.com/smerrony/easy_graphics","last_synced_at":"2025-10-10T14:37:48.785Z","repository":{"id":247224679,"uuid":"823815457","full_name":"SMerrony/easy_graphics","owner":"SMerrony","description":"Easy_Graphics is a simple library for generating graphical output from your Ada program","archived":false,"fork":false,"pushed_at":"2024-08-08T12:16:34.000Z","size":458,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-22T10:41:13.408Z","etag":null,"topics":["ada","alire","gif","graphics","ppm","turtle-graphics"],"latest_commit_sha":null,"homepage":"","language":"Ada","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/SMerrony.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-07-03T19:22:14.000Z","updated_at":"2024-10-13T09:50:04.000Z","dependencies_parsed_at":"2024-08-08T14:14:46.449Z","dependency_job_id":null,"html_url":"https://github.com/SMerrony/easy_graphics","commit_stats":null,"previous_names":["smerrony/easy_graphics"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SMerrony/easy_graphics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMerrony%2Feasy_graphics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMerrony%2Feasy_graphics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMerrony%2Feasy_graphics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMerrony%2Feasy_graphics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SMerrony","download_url":"https://codeload.github.com/SMerrony/easy_graphics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SMerrony%2Feasy_graphics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004179,"owners_count":26083688,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["ada","alire","gif","graphics","ppm","turtle-graphics"],"created_at":"2024-11-12T00:28:02.585Z","updated_at":"2025-10-10T14:37:48.758Z","avatar_url":"https://github.com/SMerrony.png","language":"Ada","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca\u003e\n   \u003cimg src=\"doc/logo.gif\" align=\"right\" alt=\"Easy_Graphics Logo, generated by Easy_Graphics!\"\u003e\n\u003c/a\u003e\n\n# Easy_Graphics Package\n\nEasy_Graphics is a simple library for generating graphical output from your Ada program.\n\nTypical use cases might be educational projects, prototyping, programming challenges, or\nsimply when you want to visualise something quickly in a larger system.\n\nThe logo on the right is created with just a few lines of code, see [this program](\u003ctests/src/create_logo.adb\u003e)\n\nThe package is free to use, with no warranty, under the MIT license.\n\n## Main Features\n\n* Image output as portable PPM, PAM, and GIF files (other formats to follow)\n* Images of any size using whatever (integer) coordinate ranges you like\n* Simple set of graphics primitives provided\n* Basic turtle graphics are supported\n* Images are 24-bit colour + 8-bit alpha\n* Basic (HTML/CSS) colours predefined as constants, as is TRANSPARENT\n\n### Utility Subprograms\n* `New_Image` create a new image (\"canvas\"), prefilled with a colour or transparent\n* `Write_PPM` create \"raw\" or \"plain\" NetPBM PPM file from image, Alpha is ignored\n* `Write_GIF` create GIF file - only partially implemented at the moment\n* `Write_PAM` create NetPBM PAM file from image, includes transparency.  N.B. Convert to PNG with `convert img.pam img.png` or view directly with `pqiv`\n* `HSV_To_RGB` convert colour values\n\n\n### Drawing Primitives\n* `Plot` a point on the image\n* `Set_Alpha` changes the transparency of a point\n* `Fill` an entire image with a colour\n* `Line` draw a line between two `Point`s\n* `Rect` (filled or outline)\n* `Triangle` (filled or outline)\n* `Circle` (filled or outline)\n* `Char` draw a character using a simple built-in font\n* `Text` draw a string\n\n### Turtle Graphics\n* `New_Turtle` creates a virtual turtle for an image\n* `Home` centres the turtle\n* `Go_To` a specific coordinate\n* `Pen_Up`, `Pen_Down` and `Pen_Color`\n* `Forward`, `Back`\n* `Left` and `Right` turn relative to the current heading\n* `Turn_To` turns to an absolute heading\n\n### Example Code\nThere are several example programs using Easy_Graphics in the `tests/src` directory.\nThe [tests.adb file](\u003ctests/src/tests.adb\u003e) is intended to demonstrate all features\nthat are currently implemented.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmerrony%2Feasy_graphics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmerrony%2Feasy_graphics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmerrony%2Feasy_graphics/lists"}