And if you also want a shade controller (I’m guessing it’s to control the lightness of the colour) you could simply add a slider whose values go from 1 to 6, call it “Lightness” and add a bit to the end of the script:
Change the .1 and the 1 in the “linear” statement to reflect how bright/dark you want it. The “.value.toFixed(0)” ensures that only 6 levels of brightness can be selected, by rounding the value to 0 decimal places.
idx=0;
if (effect("reddish")("Checkbox") ==1) { idx = 1};
if (effect("dark orange")("Checkbox") ==1) { idx = 2};
if (effect("light orange")("Checkbox") ==1) { idx = 3};
if (effect("yellow")("Checkbox") ==1) { idx = 4};
if (effect("pale yellow")("Checkbox") ==1) { idx = 5};
colors = [[255,255,255],
[179,32,52],
[232,73,27],
[239,125,0],
[252,192,67],
[255,229,150]];
c = colors[idx]/255;
lightness=effect("Lightness")("Slider").value.toFixed(0);
lightnessMultiplier= linear(lightness,1,6,.1,1);
[c[0],c[1],c[2],1]*lightnessMultiplier