Here is a short program that demonstrates using Processing.js. It is all built into modern browsers, no plug-ins required.