Index of modules

B
Base [P5.Maker]

Base contains default implementations of most of the Sketch functions; use it by including it at the top of your sketch module.

Base [Sketch]

Base contains default implementations of most sketch functions.

Bezier

Bezier contains the Bezier.t type, which stores information about a cubic Bezier curve, and functions for creating and manipulating Bezier curves.

C
Color

Color contains the color type and utilities for manipulating colors.

Config

Config contains the config type, used for providing configuration and input information to the sketch, and utility functions for accessing information from a config.

Core [P5]

Core is a wrapper module around the core p5ml modules, except for the renderers.

D
Dict [P5.Core]
Dynamic [Runner]

Used internally by dynamic runner

G
Graph [P5]

Graph is the p5ml core module instantiated with the Graphics renderer.

Graph

An implementation of Renderer using the OCaml Graphics library as a backend.

Graph

A renderer using the OCaml Graphics library.

Gtk_cairo

An implementation of Renderer using GTK+ and cairo2 as the backend.

Gtk_cairo

A renderer using GTK+/cairo2.

Gtkc [P5]

Gtkc is the p5ml core module instantiated with the GTK+/cairo2 renderer.

K
Key
Key

Key contains preset key values for config's key and key_unicode fields.

KeyUnicode [Key]
M
Maker [P5]

Maker R is a p5ml core module instantiated with the renderer R.

Math

Math contains many common mathematical functions.

Math

Math contains standard mathematical functions, trignometric functions, operations on angles, vectors, and operations on vectors.

Misc

Misc contains miscellaneous utility functions.

P
P5

P5 is the main entrypoint to p5ml.

Paint

Paint contains the paint type and utilities for manipulating paints.

R
R [Sketch.Sketch]
R [Sketch.Base]
Renderer

Renderer contains the renderer interface and types for events and display settings.

Runner
Runner

Runner contains code for running sketches.

S
Shape

Shape contains the Shape.t type and utilities for creating and manipulating shapes.

Sketch

Sketch contains the sketch interface and the base implementation.

V
Vector [Math]

Vector contains the Vector.t type and functions for creating and manipulating vectors.