lundi 12 mars 2012

Lesson 3: Using a program 1

Trying to programming a bit ourselves! We will start at the beginning.

First step:

Some programs to make patterns (very good ones!) can be found on the internet. But we start doing it using Processing.

download Processing at Processing.org

Some very basic and comprehensible intro's in programming can be found on the site of Processing:http://processing.org/learning/

Under the tab File (when having started Processing) you can find "Examples". Under examples/topics you can find a folder "cellular automata". The program "Wolfram" is an example to generate "the triangles". But this is already complex to start with...

We start much simpler:
First we program a few rectangles and try to make a pattern, by hand (knitting1a):











and by loops (knitting1b):




This is the program we are going to test today to generate design.
Not all is good!
Explore the possibilities.


Download:
 

Second step:

Now we generate the pattern from "arrays": (using a double loop)
Arrays are like knitting stitches.













http://www.contrechoc.com/crosslab/knitting1c.zip

Third step:

 In the third step we generate "the next row" of knitting (digital knitting that is) from the row above, using very simple rules:




















Download file:
 http://www.contrechoc.com/crosslab/cellular_knitting.zip

Aucun commentaire:

Enregistrer un commentaire