Add-on to BOGUE. Enable the use of Cairo drawing functions in Bogue's Sdl_area
- OCaml 92.8%
- Shell 2.9%
- Dune 2.8%
- CSS 1.5%
| .github/workflows | ||
| bin | ||
| docs | ||
| images | ||
| lib | ||
| test | ||
| .ocamlformat | ||
| addon.css | ||
| bogue-cairo.opam | ||
| Changelog.md | ||
| dune-project | ||
| LICENSE | ||
| make_doc.sh | ||
| README.md | ||
| TODO.md | ||
bogue-cairo
Add-on to Bogue.
Cairo is a famous cross-platform 2D graphics library.
The bogue-cairo library enables the use of Cairo drawing functions
in Bogue's
Sdl_area.
Examples
Circles
We rewrote Example #50 from the Bogue distribution using Bogue-cairo. Here is the result.
You may compare the original BOGUE circle primitive (and notice that the interpretation of alpha and anti-aliasing is slightly different). The Cairo version is twice as fast.
Lines
Compare Bogue's Example #51.
Interactive circles
Change the number of circles interactively using a Slider widget.


