I have an object variable that consists of colors. Is there a way for me to convert the way the object is organized to the given example?
What I have looks like this: