Fun with Canvas and Javascript

Posted: September 25, 2013 in CC Lab
Tags: ,


For this assignment we explored the canvas element in html5 with javascript to create an interactive web page. My code incorporates two draw functions, one to create circles at random sizes and another for the lines.  JQuery maps the mouse’s position to the center of the circles and end point of the lines. while a setInterval function calls the drawing functions at a specified rate in frames per second.  The transparency effect is created using the rgba color mode where an “alpha” or opacity value can be given to the normal rgb color value.

link to live page here


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s