Flow Field from Image

edited August 2014 in How To...

I would like to start a discussion on how to make a flow field from an image. I have searched but have not found a method that describes creating it from an image. The idea is outlined (@11:55) in Daniel Schiffman's Nature of Code video on the subject here:

  • Has anyone come across a method to do this?

I imagine you could start with:

-> Sample an image -> Perhaps "get()" the color of each pixel at some resolution lower than the image -> Fill a 2D array with this. -> Convert the color into an angle and load that into the PVector array.

However, I have not the syntax to accomplish this yet. I will try tonight and see where I can get.

Answers

Sign In or Register to comment.