Color Mixer explainer

The aim of this puzzle: To draw each object in arrayOfObjects using drawBox() in a for loop.
Walkthrough of the solution: You’re given an array filled with RGB objects. If you were to put one of those in a drawBox() it would work, but instead of writing it out again you can use a for loop, store each object in a temporary variable called element and then drawBox(element). When you create a for…of loop it asks for a temporary variable and something to loop through. In this puzzle, you are looping through arrayOfObjects and storing each of them, one at a time, in a variable called element.
Sample code solution:
(Tap below to reveal)

var arrayOfObjects = [{
    red: 80,
    green: 30, 
    blue: 200
    red: 150, 
    green: 50, 
    blue: 100,
    red: 150, 
    green: 200, 
    blue: 20
for (var element of arrayOfObjects) {

JavaScript Concepts: Data Structures (objects, array), Code Block (for loop), Calling Functions, Identifiers, Loops, Variable Declaration
Grasshopper Concepts: drawBox()

color mixer dosent have the free red and green color i cant do green:[random number] or red:[random color]