{"id":20601740,"url":"https://github.com/xboot/libcg","last_synced_at":"2025-06-27T22:33:06.477Z","repository":{"id":51061211,"uuid":"434119392","full_name":"xboot/libcg","owner":"xboot","description":"The tiny C library of 2D computer graphics.","archived":false,"fork":false,"pushed_at":"2024-04-03T09:11:23.000Z","size":731,"stargazers_count":198,"open_issues_count":2,"forks_count":36,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-13T08:44:25.832Z","etag":null,"topics":["2d","c","vg"],"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/xboot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-12-02T07:15:14.000Z","updated_at":"2025-04-09T10:57:31.000Z","dependencies_parsed_at":"2024-11-16T09:11:56.783Z","dependency_job_id":"88249768-cd0d-4bc0-9a04-57a0f1567118","html_url":"https://github.com/xboot/libcg","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/xboot/libcg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xboot%2Flibcg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xboot%2Flibcg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xboot%2Flibcg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xboot%2Flibcg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xboot","download_url":"https://codeload.github.com/xboot/libcg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xboot%2Flibcg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262343995,"owners_count":23296434,"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":["2d","c","vg"],"created_at":"2024-11-16T09:11:53.131Z","updated_at":"2025-06-27T22:33:06.455Z","avatar_url":"https://github.com/xboot.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n***\n# libcg\nThe tiny `C` library of 2D computer graphics.\n\n## Getting Started\n\nThe library's .c and .h files can be dropped into a project and compiled along with it. Just type `make` at the root directory, you will see a static library and some binary of [examples](examples) for usage.\n\n```shell\ncd libcg\nmake\n```\n## Screenshots\n\n![arc](screenshots/arc.png)\n![arc_negative](screenshots/arc_negative.png)\n![clip](screenshots/clip.png)\n![clip_image](screenshots/clip_image.png)\n![curve_rectangle](screenshots/curve_rectangle.png)\n![curve_to](screenshots/curve_to.png)\n![dash](screenshots/dash.png)\n![fill_and_stroke](screenshots/fill_and_stroke.png)\n![fill_style](screenshots/fill_style.png)\n![gradient](screenshots/gradient.png)\n![image](screenshots/image.png)\n![lines](screenshots/lines.png)\n![multi_segment_caps](screenshots/multi_segment_caps.png)\n![rounded_rectangle](screenshots/rounded_rectangle.png)\n![set_line_cap](screenshots/set_line_cap.png)\n![set_line_join](screenshots/set_line_join.png)\n![smile](screenshots/smile.png)\n![texture_tiled](screenshots/texture_tiled.png)\n\n## License\n\nThis library is free software; you can redistribute it and or modify it under the terms of the MIT license. See [MIT License](LICENSE) for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxboot%2Flibcg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxboot%2Flibcg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxboot%2Flibcg/lists"}