Posts Tagged ‘canvas’

CC Lab Midterm: Arduino & Node JS

Posted: December 13, 2013 in CC Lab
Tags: , , ,

screenshot1 screenshot2 screenshot3 screenshot4 screenshot5

This project uses an Arduino Uno with a Node JS server running locally to create an abstract visualization within the HTML5 Canvas element. The button and potentiometer on the arduino alter the the shapes being drawn on the screen. Code is available here and demo video available here


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