https://github.com/calsign/p5ml
Processing reimagined functionally with OCaml.
https://github.com/calsign/p5ml
ocaml processing
Last synced: about 1 year ago
JSON representation
Processing reimagined functionally with OCaml.
- Host: GitHub
- URL: https://github.com/calsign/p5ml
- Owner: Calsign
- Created: 2018-12-22T07:13:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T00:08:44.000Z (almost 6 years ago)
- Last Synced: 2025-04-14T01:52:43.767Z (about 1 year ago)
- Topics: ocaml, processing
- Language: OCaml
- Homepage:
- Size: 199 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## p5ml
An implementation of [Processing](https://processing.org/) in
[OCaml](https://ocaml.org/), driven by the functional paradigm. The goal of
this project is to reimagine Processing in a purely functional context to
bridge the gap between the learning potential of Processing and the functional
nature of OCaml.
Read the auto-generated docs: [API](https://calsign.github.io/p5ml/)
To build the p5ml library, run `make` in the `core` directory. This takes care
of linking the p5ml library to ocamlfind. You may need to install some
libraries with opam (ounit, graphics, lablgtk, cairo2, cairo2-gtk).
To build a sketch, first run `make` in the `app` directory. Then pass the
sketch to `app/launcher.byte` (e.g. `app/launcher.byte examples/demo.ml`) in
order to run the sketch. There are examples in the `examples` directory.
> Tip: pass the `-d` flag to `app/launcher.byte` (dynamic mode) to make the
> sketch reload automatically when the file is modified.