function* genColorValue(
start,
jcent = 0.2,
ccent = 0.2,
hcent = 0.2,
frequency = 1
) {
const rgbColor = d3.color(start);
const jchColor = cam02.jch(rgbColor);
const jgen = genValue(jchColor.J, 0, 100, jcent, frequency);
const cgen = genValue(jchColor.C, 0, 100, ccent, frequency);
const hgen = genValue(jchColor.h, 0, 360, hcent, frequency);
while (true) {
const nextJ = jgen.next();
const nextC = cgen.next();
const nextH = hgen.next();
const nextColor = d3.color(
cam02.jch(nextJ.value, nextC.value, nextH.value)
);
yield nextColor;
}
}