Home

Awesome

Patterning

Note : this Patterning repository is now deprecated

See Patterning Core.

That is the up-to-date repository of the core library for generating patterns in your Clojure / ClojureScript projects. Its README also has links to other important resources and ways of using Patterning.

Quick blog post about the deprecation : here.

DEPRECATED OLD README

Quick Start

Make sure you have Clojure, Leiningen and Quil installed.

git clone https://github.com/interstar/Patterning.git patterning
cd patterning
lein run

The code to generate the pattern is in src/patterning/core.clj

To run unit tests.

lein test

To run the REPL.

lein repl

Examples

Look in the cljx-src/patterning/examples/ directory for examples

The tutorial gives a guided tour of the basic functions of Patterning. The code for this tutorial can be found in examples/tutorial.clj

to see each of the examples in action change src/patterning/core.clj to assign the pattern that's created to "final-pattern".

For example :

(def final-pattern tutorial/triangles)

Then re-run with

lein run

See Alchemy Islands for more examples and discussion of Patterning.

License

Copyright © 2014 Phil Jones

Distributed under the Gnu Affero General Public License either version 3.0 or (at your option) any later version.