Archive for June, 2008

Portfolio Index For KKB210 Assignment 3

Monday, June 9th, 2008

Portfolio Item 1 -

Portfolio Item 2 -

Portfolio Item 3 -

The Draggable Box – Take 3

Saturday, June 7th, 2008

Just a minor fix to the draggable box I made the other day. Previously it positioned the box so that the top-left corner was aligned with the mouse. Now, it centres the box horizontally and vertically behind the mouse.

It is available online here along with the full source code.

The changes made to fix this are pretty simple, and the code changes are shown below.


Dancing Balls

Friday, June 6th, 2008

Just playing with Quartz Composer. Four dancing balls that bounce horizontally and vertically.

The file, dancing_balls.qtz is online here.

Mouse Controlled Kaleidoscope

Friday, June 6th, 2008

I have added some mouse controls to my kaleidoscope so that the type of motion changes based on the position of the mouse.

The motion is slow if the mouse is in the top-left corner and speeds up as you move in any direction from the top-left, moving in different ways depending on the direction of the mouse.

I have added the ability to be able to control the animation by clicking the mouse as well. This is commented out in the online file and in the source code, but can easily be turned back on by uncommenting it.

It’s available online here.

If the comments are removed, then no animation will occur until the left mouse button is pressed. When it is pressed it will behave the same way as when the mouse button control is commented out. When the mouse button is released, the animation stops.

Note that with the mousePressed() function commented out, nothing will happen until the mouse first moves over the sketch.

The source code is below.


Spiral Kaleidoscope

Friday, June 6th, 2008

Spiral KaleidoscopeBuilding on my randomly generated spirals developed earlier, I was aiming to get the spirals to either spin, or change either on their own, or in response to a user’s input. I have not yet been able to get it to work like this, but I have gotten it to change and spin with the appearance of a kaleidoscope.

Have a look at it online here.

Each time it loads, a random spiral will be generated, as with the original, the spiral will then disappear into the spinning kaleidoscope. The source code is below.