ifs-fractalsversion Documentation on ocaml.org

IFS fractals (the Barnsley fern and friends) drawn with the chaos game

Draws fractals defined by iterated function systems (IFS) in an OCaml Graphics window, or renders them to PNG files (optionally colored by point density, and with no display needed), using the chaos game. Sixteen fractals are predefined (the Barnsley fern, the Sierpinski triangle, a dragon curve, a maple leaf, a sunflower, Queen Anne's lace, ...), available both from the ifs-fractals command-line tool and as a library for the toplevel. Defining a new fractal is a small record: a handful of affine transforms with their weights and a viewport.

Tags fractals graphics chaos-game ifs
AuthorCédric Bonhomme <cedric@cedricbonhomme.org>
LicenseGPL-3.0-or-later
Published
Homepagehttps://github.com/cedricbonhomme/iterated-function-systems
Issue Trackerhttps://github.com/cedricbonhomme/iterated-function-systems/issues
Documentationhttps://ocaml.org/p/ifs-fractals
MaintainerCédric Bonhomme <cedric@cedricbonhomme.org>
Dependencies
Source [http] https://github.com/cedricbonhomme/iterated-function-systems/archive/refs/tags/v1.2.0.tar.gz
md5=d40602261f2f6e005278ca546e37b640
sha512=adf4d4a25a86a8d0041d6677dd26a21f4f97d7523f00b4b6037c8e73981e259fa763c682e8fedb5597ce3908a8c400ab2f872c745ef6274c413161d1dfc3d7d5
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ifs-fractals/ifs-fractals.1.2.0/opam
No package is dependent