Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xboot/libcg
The tiny C library of 2D computer graphics.
https://github.com/xboot/libcg
2d c vg
Last synced: 4 days ago
JSON representation
The tiny C library of 2D computer graphics.
- Host: GitHub
- URL: https://github.com/xboot/libcg
- Owner: xboot
- License: mit
- Created: 2021-12-02T07:15:14.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T09:11:23.000Z (9 months ago)
- Last Synced: 2024-12-18T15:06:04.681Z (11 days ago)
- Topics: 2d, c, vg
- Language: C
- Homepage:
- Size: 714 KB
- Stars: 195
- Watchers: 9
- Forks: 36
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
***
# libcg
The tiny `C` library of 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, you will see a static library and some binary of [examples](examples) for usage.
```shell
cd libcg
make
```
## 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)
![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)
![smile](screenshots/smile.png)
![texture_tiled](screenshots/texture_tiled.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.