# 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**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 65 - **Forks**: 24 - **Created**: 2021-12-03 - **Last Updated**: 2026-07-07 ## 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 Online documentation: [https://libcg.xboot.org](https://libcg.xboot.org) ## Screenshots ![arc](documents/static/screenshots/arc.png) ![arc_negative](documents/static/screenshots/arc_negative.png) ![clip](documents/static/screenshots/clip.png) ![clip_image](documents/static/screenshots/clip_image.png) ![curve_rectangle](documents/static/screenshots/curve_rectangle.png) ![curve_to](documents/static/screenshots/curve_to.png) ![dash](documents/static/screenshots/dash.png) ![fill_and_stroke](documents/static/screenshots/fill_and_stroke.png) ![fill_style](documents/static/screenshots/fill_style.png) ![gradient](documents/static/screenshots/gradient.png) ![hollow_star](documents/static/screenshots/hollow_star.png) ![image](documents/static/screenshots/image.png) ![lines](documents/static/screenshots/lines.png) ![multi_segment_caps](documents/static/screenshots/multi_segment_caps.png) ![rounded_rectangle](documents/static/screenshots/rounded_rectangle.png) ![set_line_cap](documents/static/screenshots/set_line_cap.png) ![set_line_join](documents/static/screenshots/set_line_join.png) ![taiji](documents/static/screenshots/taiji.png) ![texture_tiled](documents/static/screenshots/texture_tiled.png) ![mask_surface](documents/static/screenshots/mask_surface.png) ![rainbow](documents/static/screenshots/rainbow.png) ![logo](documents/static/screenshots/logo.png) ![operators](documents/static/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.