rectanglesWithColor = rectangles.map(({x, y, side, offsetX, offsetY, strokeWidth}) => {
const { h, s, l } = d3.hsl(bgColor);
const randColNum = Math.floor(Math.random() * numColors) + 1;
const newH = (h + randColNum * (360 / (numColors + 1))) % 360;
const shadow = "drop-shadow(3px 3px 2px rgba(0, 0, 0, .7))";
const color = d3.hsl(newH, s + ds, l + dl);
return {x, y, side, offsetX, offsetY, strokeWidth, color, shadow};
})