2021-12-02 15:36:19 +08:00
***
2021-12-02 18:50:13 +08:00
# libcg
The tiny `C` library of 2D computer graphics.
2021-12-02 15:36:19 +08:00
## Getting Started
2021-12-05 11:20:37 +08:00
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.
2021-12-02 15:36:19 +08:00
```shell
cd libcg
make
```
## Screenshots
2021-12-03 00:19:06 +08:00
![arc ](screenshots/arc.png )
![arc_negative ](screenshots/arc_negative.png )
2021-12-02 16:02:31 +08:00
![clip ](screenshots/clip.png )
2021-12-04 19:23:41 +08:00
![clip_image ](screenshots/clip_image.png )
2021-12-02 16:02:31 +08:00
![curve_rectangle ](screenshots/curve_rectangle.png )
![curve_to ](screenshots/curve_to.png )
![dash ](screenshots/dash.png )
![fill_and_stroke ](screenshots/fill_and_stroke.png )
2021-12-03 00:19:06 +08:00
![fill_style ](screenshots/fill_style.png )
2021-12-02 16:02:31 +08:00
![gradient ](screenshots/gradient.png )
2021-12-04 19:23:41 +08:00
![image ](screenshots/image.png )
2021-12-03 01:21:27 +08:00
![lines ](screenshots/lines.png )
2021-12-02 16:02:31 +08:00
![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 )
2021-12-04 19:36:51 +08:00
![texture_tiled ](screenshots/texture_tiled.png )
2021-12-02 15:36:19 +08:00
## 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.