Skip to content

claudiusFX/claudius-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

134 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A set of examples using Claudius, an fantasy-console library in OCaml

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors