{"id":30195053,"url":"https://github.com/niten01/canvaslib","last_synced_at":"2025-08-22T22:46:48.472Z","repository":{"id":107072720,"uuid":"539190960","full_name":"niten01/CanvasLib","owner":"niten01","description":"A tiny 2d graphics c++ library for fast prototyping","archived":false,"fork":false,"pushed_at":"2024-04-21T10:15:39.000Z","size":844,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T15:32:07.803Z","etag":null,"topics":["2d","canvas","cpp","glfw","library"],"latest_commit_sha":null,"homepage":"https://lolitron-0.github.io/CanvasLib/html/","language":"C++","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/niten01.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,"zenodo":null}},"created_at":"2022-09-20T21:02:13.000Z","updated_at":"2024-04-21T10:15:42.000Z","dependencies_parsed_at":"2024-03-31T15:23:55.048Z","dependency_job_id":"19bfb49f-ff0f-45f6-a85e-b3e1ac1f3251","html_url":"https://github.com/niten01/CanvasLib","commit_stats":null,"previous_names":["niten01/canvaslib"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/niten01/CanvasLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niten01%2FCanvasLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niten01%2FCanvasLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niten01%2FCanvasLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niten01%2FCanvasLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niten01","download_url":"https://codeload.github.com/niten01/CanvasLib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niten01%2FCanvasLib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270174339,"owners_count":24539752,"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-08-13T02:00:09.904Z","response_time":66,"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":["2d","canvas","cpp","glfw","library"],"created_at":"2025-08-13T03:24:57.486Z","updated_at":"2025-08-13T03:25:03.074Z","avatar_url":"https://github.com/niten01.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CanvasLib\n\nCanvasLib is a tiny c++ GLFW 2d graphics library for fast prototyping of some simulations/games/whatever. Inspired by JS canvas.\n\n## Basic usage example\n```cpp\n#include \u003cCanvasLib/CanvasLib.hpp\u003e\n \nauto main() -\u003e int\n{\n    canv::Canvas canvas{ 1000, 800 };\n    canvas.setUpdateFunction(\n        [\u0026canvas](double fpsScale)\n        {\n            canvas.setFillColor(canv::Colors::green);\n            canvas.drawRectangle(100, 100, 50, 150);\n        });\n    canvas.start();\n}\n```\n## Building with CMake\n### Dependencies\nThe only dependency is `glfw` library. You can install it via your favorite package manager. For exmple:\n * `sudo apt-get install libglfw3 libglfw3-dev` \n\nOr use Nix flakes. \n\n\n### Adding to your project:\n```cmake\ninclude(FetchContent)\nFetchContent_Declare(CanvasLib\n    GIT_REPOSITORY \"https://github.com/Lolitron-0/CanvasLib\"\n    GIT_TAG \"origin/master\"\n)\nFetchContent_MakeAvailable(CanvasLib)\n\ntarget_link_libraries(foobarbaz PUBLIC CanvasLib)\n```\n\n## Docs\nDoxygen documentation is available [here](https://lolitron-0.github.io/CanvasLib/html/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniten01%2Fcanvaslib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniten01%2Fcanvaslib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniten01%2Fcanvaslib/lists"}