# libcg **Repository Path**: xboot/libcg ## Basic Information - **Project Name**: libcg - **Description**: The tiny C library of 2D computer graphics. - **Primary Language**: C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 65 - **Forks**: 24 - **Created**: 2021-12-03 - **Last Updated**: 2026-06-15 ## Categories & Tags **Categories**: image-processing **Tags**: None ## README # libcg A tiny C library for 2D computer graphics. ## Getting Started The library's .c and .h files can be dropped into a project and compiled along with it. Just type `make` at the root directory to build the static library and the example binaries under [examples](examples). ```shell make ``` ## Documentation - [API Reference](documents/API-Reference.md) - [API 参考文档](documents/API-Reference-zh-CN.md) (中文) ## Screenshots ![arc](screenshots/arc.png) ![arc_negative](screenshots/arc_negative.png) ![clip](screenshots/clip.png) ![clip_image](screenshots/clip_image.png) ![curve_rectangle](screenshots/curve_rectangle.png) ![curve_to](screenshots/curve_to.png) ![dash](screenshots/dash.png) ![fill_and_stroke](screenshots/fill_and_stroke.png) ![fill_style](screenshots/fill_style.png) ![gradient](screenshots/gradient.png) ![hollow_star](screenshots/hollow_star.png) ![image](screenshots/image.png) ![lines](screenshots/lines.png) ![multi_segment_caps](screenshots/multi_segment_caps.png) ![rounded_rectangle](screenshots/rounded_rectangle.png) ![set_line_cap](screenshots/set_line_cap.png) ![set_line_join](screenshots/set_line_join.png) ![taiji](screenshots/taiji.png) ![texture_tiled](screenshots/texture_tiled.png) ![mask_surface](screenshots/mask_surface.png) ![rainbow](screenshots/rainbow.png) ![logo](screenshots/logo.png) ![operators](screenshots/operators.png) ## License This 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.