Check out Processing.org.
Learn about Java on the Oracle website or read the technical documentation here.
Check out the Processing forum for technical help and OpenProcessing.org for viewing and sharing sketches.
Learn more about the rect() function in the Processing reference for rect().
Go to the Processing reference page.