Interfacing ADXL335 with processing

Hi there,

I'm new to Arduino and Processing, so apologies if this seems a rather easy or trivial question.

What I would like to do is produce a graphic in Processing which mimics the movement of said accelerometer. If anyone has any code for this, I'd be more than grateful. What I would like to produce is something like this - Arduino and accelerometer - YouTube.

Thanks

I've been able to get a program for Processing to visually represent data -

but now, how would I go about sending the data from the accelerometer to Processing so it can be displayed?

How does the ADXL335 connect to the Arduino?

The VCC to the 3.3v pin on the board, GND to the GND pin, x axis to A0, y axis to A1, z axis to A2.

It's an arduino uno, if that is of any relevance.