I made an expression in grasshopper that will allow me to control the avg distance of points to a set of attractors, but I’m not sure how to change the attractors location. My goal is to have the attractors represent a set of points that make up an image, so that when I lower the avg distance of my points the image will start to form.
If you plug your points into the Point Sampler component, you’ll get the sampled color information per point (i.e.; (r, g, b)). You can then for instance use this information to cull points in light or dark areas. There’s the ARGB component which let’s you “deconstruct” the color information into individual color channels.
It’s customary to only use one color and compare it to another magic number (e.g. 0.5) to decide which points to cull and which ones to keep.
I don’t understand what you mean by “move”, but no, it does not matter how the points are distributed, it’s up to you. You can start with them in a grid, a random point distribution or whatever you like. The part that I described above just takes care of thinning out the point population with the color information from the image.