You can check it out my sketch in this link:
 
Make sure to copy and paste to the Processing application, because OpenProcessing it's not visualizing properly the code on the web.
 
Generative Logo
Published:

Generative Logo

Generative logo created on Processing.

Published: