You would either.use the linear() method on the intermediate lines to calculate intermediate colors.
so line 1’s stroke color is something like;
thisComp.layer("control").effect("color A")("Color")
line 10’s stroke color is:
thisComp.layer("control").effect("color B")("Color")
the 9 lines in between have:
percentage=50;
linear(percentage,0,100,
thisComp.layer("control").effect("color A")("Color"),
thisComp.layer("control").effect("color B")("Color")
);
With percentages 10,20,30,40,…90
OR,
you make your artwork in grayscales from dark to light and use CC Toner to map those grayscales to up to 5 tones. For an even distribution of 4 colors I would use colors between 0 and 80% gray and disregard the 5th swatch of Toner Pentone mode