libcg/README.md

39 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

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
![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)
2021-12-03 01:21:27 +08:00
![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)
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.