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%
Find a file
2026-02-26 12:01:30 +01:00
.github/workflows add test 2026-01-20 12:47:04 +01:00
bin fix test 2026-02-26 12:01:30 +01:00
docs needs bogue >= 20260208 2026-02-26 10:58:51 +01:00
images add slider example + improve doc 2023-12-23 21:56:53 +01:00
lib fix homepage 2026-01-20 11:07:52 +01:00
test needs bogue >= 20260208 2026-02-26 10:58:51 +01:00
.ocamlformat fix homepage 2026-01-20 11:07:52 +01:00
addon.css use dune >= 3.8 for generating html doc 2023-12-23 11:17:35 +01:00
bogue-cairo.opam needs bogue >= 20260208 2026-02-26 10:58:51 +01:00
Changelog.md version 0.1.0 2023-12-23 22:09:20 +01:00
dune-project needs bogue >= 20260208 2026-02-26 10:58:51 +01:00
LICENSE first commit 2022-02-24 22:10:40 +01:00
make_doc.sh use dune >= 3.8 for generating html doc 2023-12-23 11:17:35 +01:00
README.md typo 2023-12-23 22:04:24 +01:00
TODO.md use dune >= 3.8 for generating html doc 2023-12-23 11:17:35 +01:00

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.

Cairo circles

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.

Cairo lines

Interactive circles

Change the number of circles interactively using a Slider widget.

Slider

Documentation

Here