Paver 'gradient' - Jitttering is uneven

I think there’s a somewhat simpler technique that will help you here. Jitter is very dependent on list order — in this case we’d probably prefer to preserve the order of the original list. This way we also no longer need to do any rotating or make any other assumptions about the shape of the curve or the arrangement of the pavers — it will work with any set of curves and any attractor.

The tactic I use is this:

  1. find the distance from every paver to the attractor curve. I’d use Curve Closest Point for this, using a point for the center of each paver.
  2. Add some random noise to the distance value itself. The larger this value, the greater the “blur” between color zones.
  3. Remap the Distance+noise values to be between 0-1
  4. find the domain each remapped value fits within with Find Domain.
  5. The index of the “found domain” is now the index for your paver.
  6. Use Member Index to get the counts of each paver color.

The other thing I’d suggest is to treat your pavers as Meshes rather than creating Boundary Surfaces in order to visualize them. Using that in tandem with Mesh Color will be much faster.

choi-paver-gradient.gh (344.3 KB)

3 Likes