Back to photostream

distance function video 37 still

A frame from a video made in the following way: Thirty particles move linearly at various constant speeds, in randomly chosen directions, bouncing off the sides. For each pixel, determine the set of distances from the pixel to each particle (distance here calculated as the maximum absolute difference of x and y coordinates). Sort this set of distances. Color the pixel a grey value based on the ratio (distances[6]-distances[5])/(distances[7]-distances[5]).

 

Made with Processing (processing.org).

 

Video is here: vimeo.com/304041590

1,412 views
5 faves
2 comments
Uploaded on December 3, 2018