{"id":24989777,"url":"https://github.com/rrrinav/term-graphics","last_synced_at":"2026-02-28T13:31:14.417Z","repository":{"id":247041696,"uuid":"824599454","full_name":"Rrrinav/Term-Graphics","owner":"Rrrinav","description":"A simple header only library for terminal graphics","archived":false,"fork":false,"pushed_at":"2025-05-05T19:09:05.000Z","size":28196,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T22:02:41.610Z","etag":null,"topics":["cli","graphics-engine","terminal-game","terminal-graphics","terminal-graphics-engine","terminal-graphics-rendering","tui"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Rrrinav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-05T13:32:45.000Z","updated_at":"2025-05-05T19:09:09.000Z","dependencies_parsed_at":"2025-04-19T19:33:12.062Z","dependency_job_id":"0af03d7b-9dce-48df-81a4-31dc8ca0cb05","html_url":"https://github.com/Rrrinav/Term-Graphics","commit_stats":null,"previous_names":["rrrinav/term-graphics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rrrinav/Term-Graphics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rrrinav%2FTerm-Graphics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rrrinav%2FTerm-Graphics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rrrinav%2FTerm-Graphics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rrrinav%2FTerm-Graphics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rrrinav","download_url":"https://codeload.github.com/Rrrinav/Term-Graphics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rrrinav%2FTerm-Graphics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29935355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:16:57.922Z","status":"ssl_error","status_checked_at":"2026-02-28T13:11:15.149Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cli","graphics-engine","terminal-game","terminal-graphics","terminal-graphics-engine","terminal-graphics-rendering","tui"],"created_at":"2025-02-04T13:03:29.454Z","updated_at":"2026-02-28T13:31:14.374Z","avatar_url":"https://github.com/Rrrinav.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASCII Graphics Engine\n\nA powerful and flexible ASCII graphics rendering engine with advanced features for creating stunning console-based visuals and interactive applications.\n\n## Features\n\n- **High-performance rendering**: Optimized for speed and efficiency\n- **Rich shape drawing**: Lines, circles, rectangles, triangles, polygons, and more\n- **Anti-aliasing**: Smooth line and shape rendering for improved visual quality\n- **Color support**: Full RGB color capabilities with transparency\n- **Text rendering**: Custom font support with shadowing effects\n- **Glyphs and glyphs animation**: Load and render custom glyphs and animations\n- **Sprite system**: Load and render sprite animations\n- **Input handling**: Keyboard and mouse input support\n- **Window management**: Easy-to-use window controls\n\n## Quick Start\n\n```cpp\n#define RENDERER_IMPLEMENTATION\n#include \"renderer.hpp\"\n\nint main() {\n    auto buffer = Renderer::create_buffer(100, 80);\n    Renderer renderer(buffer);\n\n    renderer.Init();\n\n    while (true) {\n        renderer.empty();\n        renderer.reset_screen();\n\n        // Draw your graphics here\n        renderer.draw_circle({50, 40}, 20, 'o', GREEN);\n        renderer.draw_text({10, 10}, \"Hello, ASCII World!\", BRIGHT_WHITE);\n\n        renderer.draw();\n        renderer.sleep(1000 / 60); // 60 FPS\n\n        if (Window::is_pressed(Keys::KEY_ESC)) break;\n    }\n\n    return 0;\n}\n```\n\n## Advanced Usage\n\n### Glyph animation\n\n```cpp\nsprite.load_from_file(\"animation.txt\");\nrenderer.draw_sprite({10, 10}, animated_sprite.get_frame(frame));\nAnimated_sprite animated_sprite;\nanimated_sprite.load_from_file(\"animation.txt\");\nrenderer.draw_sprite(start_pos, animated_sprite.get_frame(frame));\n```\n\n### Shapes and anti-aliasing\n\n```cpp\nrenderer.draw_anti_aliased_line({10, 10}, {90, 70}, '-', BLUE);\nrenderer.draw_fill_antialias_triangleInstallation\n```\n\n### Sprites animations\n\n```cpp\nAnimated_sprite animated_sprite;\nanimated_sprite.load_from_file(\"animation.txt\");\nrenderer.draw_sprite({10, 10}, animated_sprite.get_frame(frame));\n```\n\n### User input and interaction\n\n```cpp\nif (Window::is_pressed(Keys::KEY_SPACE)) {\n    // Perform action on spacebar press\n}\n\nauto mouse_pos = Window::get_mouse_pos();\nrenderer.draw_point(mouse_pos, 'x', YELLOW);\n```\n\n## Installation\n\nClone the repository\nThis is a header only library, so you can simply include the header files in your project.\nCompile with your preferred C++ compiler (C++11 or later required)\n\n## Contributing\n\nAll contributions are welcome and appreciated. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT License](https://choosealicense.com/licenses/mit/)\n\n## Acknowledgements\n\n[Rinav](https://github.com/Rrrinav) (original author)\n\n[Stb libraries](https://github.com/nothings/stb) (used stb_image for image loading)\n\n### STILL IN DEVELOPMENT\n\n- [ ] Testing and proper development on windows still not done\n- [ ] Only update the points that are changed\n- [ ] Hot Reloading\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrrinav%2Fterm-graphics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrrinav%2Fterm-graphics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrrinav%2Fterm-graphics/lists"}