Surf's Up! explainer

The aim of this puzzle: To create a surfing flag using RGB objects.
Walkthrough of the solution: The surf flag is made of four boxes split into two rows: the first row is black, then white; the second row is white, then black. You will use drawBox() and newLine() just like before, but instead of giving the drawBox() a string, you’ll give it an object. The object is surrounded by curly brackets {} and inside has three attributes: red, green, and blue. Each attribute has a value – a number between 0 and 255 in this case. Black and white are simple to mix: black is when red, green, and blue all have values of zero, and white is when the three components have values of 255.
Sample code solution:
(Tap below to reveal)

drawBox({
  red: 0,
  green: 0,
  blue: 0
})
drawBox({
  red: 255,
  green: 255,
  blue: 255
})
newLine()
drawBox({
  red: 255,
  green: 255,
  blue: 255
})
drawBox({
  red: 0,
  green: 0,
  blue: 0
})

JavaScript Concepts: Calling Functions, Identifiers, Data Structures (object), Code Block (object)
Grasshopper Concepts: drawBox(), newLine()