thobbs / genartlib

Utilities for creating generative artwork with Clojure
MIT License
217 stars 20 forks source link
clojure generative generative-art geometry processing quil randomness

genartlib

Clojars Project cljdoc badge

Ectogenesis

A Clojure library with simple utilities for creating generative artwork.

This library is built around Quil, a Clojure wrapper around the Processing framework. However, most of the functions are just mathematical utilies that could be used idependently.

To see and read about my artwork, visit tylerxhobbs.com or follow me on Instagram or Twitter.

Usage

To install, add this to your dependencies in project.clj:

[genartlib "1.1.1"]

Dependencies

This version of genartlib is compatible with Processing 4.x and Quil 4.x. It has been tested with JDK 21.

The previous 0.x versions of genartlib were compatible with Processing/Quil 3.x and JDK 1.8.

Contents

View the API Docs.

The genartlib library has the following tools:

Project Template

Under project-template/, you'll find the basic setup that I use for every new generative art project. This is geared towards creating static images.

genartlib.algebra

The following algebra-ish functions are defined:

genartlib.geometry

genartlib.curves

genartlib.random

genartlib.plotter

genartlib.poisson-disc

Capture

This namespace contains a set of macros that are useful for capturing draw operations in a sketch, and recording them (or translating) them to another format, such as an SVG that is suitable for plotting. The nice part is that the sketch will still function as normal.

Utils

License

Copyright © Tyler Hobbs

Distributed under the MIT License.