Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 3.81 KB

File metadata and controls

54 lines (40 loc) · 3.81 KB

Claudius Examples

A library of examples of using Claudius, a simple retro-style graphics library for OCaml. Many originally created for Tiny Code Christmas and Genuary.

To run these you will need to install Claudius via opam, and then you can dune exec [example_name].

Examples Directory

Using primitives

These examples just show a single feature of Claudius, and are a good place to start if you're trying to understand how Claudius works.

  • Bounce - example of a bouncing ball made from ellipses.
  • Flying Camels - example of using image files to recreate a classic screen saver effect.
  • Polygons - rotating filled polygons.
  • Red Hexagon - a different style of rotating polyons.
  • Screen saver - a recreation of a classic screen saver effect from the early Macintosh era.
  • Shapes - using simple shape outlines to create some animation effects.
  • TextGrid - drawing characters using the built in font for Claudius.
  • DSOTM - using a combination of primitive shapes to build up a familiar image.

Algorithmic effects

These examples start to use Claudius to build up interesting effects based on some simple algorithms

Misc effects

Other more complex effects created using Claudius

Interactive programs

  • Paint - a simple painting program in a few lines of OCaml using Claudius.
  • Filedrop - a simple GIF image viewer that accepts files dropped on it.
  • keytest - an example that shows what key was pressed.