Processing
Return of the Attractors!
I recently received an email asking for more information and code about my attractor experiments in Processing. I initially thought I’d write a little tutorial but as I was searching around I found a great site with code examples by Dave Bollinger. His experiments do almost exactly what I have been doing but his examples are probably better programmed than mine and thus simpler to understand, you can find a load of his work here. And a nice attractor here.
While I was playing with my own attractor I got some nice new images by concentrating the attractors on the x axis:

orbs aligned on the x axis
and a surprising set of moth wings:

Attractors give you wings!
I also did some non-real-time animations in which the attractors are moved slightly each frame which creates ever-shifting fields of attraction and repulsion which = pretty!
All best,
Leafcutter John.
Feather Study – PT I – Skeleton
Finding more and more ‘educational’ ways to avoid filling in my tax return! Yesterday I started a study of feathers. As is my want at the moment i’m doing it in Processing and have learned lot’s already.
The feather is built along a Bézier Curve (green). This forms the spine of the feather and is deformed by the two red control points. The spine is divided into equal lengths and a ‘barb’ projects out from each subdivision. The length and angle of the barbs create the different feather shapes.
Leafcutter John x.
Processing Arrows
Randomly generated arrow compositions which came about while I was learning about classes in Processing. Click image for more on flickr.
Real time Flow Field
To go with my recent post Flow Fields in Processing here is a real time version of my flow field. This one is without easing so sudden changes in direction are a bit abrupt. Smaller objects move quicker than larger ones.
Click on the black square below to begin – then press any key to see the flow field which governs the movement.
All the best,
Leafcutter John.
Flow Fields in Processing
I’m fast becoming obsessed with Processing much to the detriment of everything and everyone in my life. Actually my partner is very encouraging and she likes these images nearly as much as I do. I first became aware of flow fields through the work of flight404 who has made some beautiful things in Processing. He describes using Perlin Noise to create a flow field but he’s not very detailed in his description of how to do it or what a flow field actually is. I spent yesterday trying to work it out and I think I came up with a solution which matches pretty closely the method I found about 10 mins ago HERE.
In the following images Perlin Noise is used to create a array/grid of angles which affect any objects which are directly above them. The grid looks like this (the angles change every frame):

As you can see the area of the screen is split into rows and columns creating a grid. Each grid cell has a direction (derived from Perlin Noise). An object placed on the grid can read the direction directly below it and move in that direction. See my Real time Flow Field.
The images below are from my experiments with a more advanced version of the system where objects turn gradually according to their mass which diminishes out over time. The coloured examples map colour to size or angle (click to see them full size).
Processing Monster
I like it when people who are learning something group together and share their knowledge. I found a website recently where you are encouraged to design a ‘monster’ in processing and send it in. The rules are simple, your creation must be: Strictly black and white & mouse reactive.
This is my effort – hint try to land the ship at the bottom of the screen but beware!
All the best,
Leafcutter John.
Merry Christmas from Leafcutter John
This year I sent my friends electronic cards made with Processing. Processing is a language based on Java, It’s free to download and fairly simple to learn the basics (I’ve been learning for about two weeks). Anyway I hope you like it and I hope you have some festive fun in the coming week.
All the best,
Leafcutter John.
Social Links
Leafcutterjoh.com
Recent Tweets
-
@JonnyVeeArgh it's the Wrongamin, a light controlled synth I designed - quite easy to build - Info on my website http://t.co/xWj7Cntxvm
-
@dangusset @MeltYrselfDown @exchangebristol No, but if this is anything to go by you need to check em anyway! http://t.co/dNLMxkn3TI
-
Me and Melt Yourself Down yesterday on Jools Holland - Fun Fun Fun http://t.co/dNLMxkn3TI
-
RT @dangusset: Escape Attempt http://t.co/OGMeEGMK8t
-
Bringing a little NOISE to the Jools Holland Show this Tuesday and Friday! With @MeltYrselfDown @TheLeafLabel http://t.co/Lf2K5m7Npq
Recent Posts
Categories
- Building Things
- Crow
- Electronics
- feather study
- field recording
- Forester
- Graphic Scores
- images
- Live Shows
- LSystem
- m-log
- Max/MSP
- Micro-Song
- Music!
- nails
- Polar Bear
- Processing
- Radio
- remix
- Site News
- Software News
- The Making of the 5th Leafcutter Album
- Things Thought
- Uncategorized
- video
- video tutorial
- Weekly DIY Music Thing
Recent Comments
- cheap car insurance for young drivers with pass plus on Final Cafe Oto concert of 2010, 21st December
- minimum car insurance kentucky on Final Cafe Oto concert of 2010, 21st December
- live cam washington dc mall on Vietnam Day 3 Field recording with Richard Eigner and Workshop with Vietnamese Musicians
- Demetria on Vietnam Day 3 Field recording with Richard Eigner and Workshop with Vietnamese Musicians
- Helen on Vietnam Day 3 Field recording with Richard Eigner and Workshop with Vietnamese Musicians




