Repetition Duplication (Java)

Your task is to create a sketch that draws this image using Processing (the gray is the background):

You are not allowed to use images, you must recreate the image using drawing commands such as rect(), triangle(), etc.

Your final code should be as short and compact as possible. Think about using “for” or “while” loops. Think about defining functions and calling them instead of copying and pasting code.

You will be judged on the organization and cleanliness of your code. Do not include any unused code. Add comments to explain what the different parts of your code are doing. Make sure your indentation is correct everywhere in the code.
Attachments:
image/png iconscreenshot2017-02-06at8.05.49am.png