Vicci Ho is a writer, film programmer and producer. She has written for Variety and worked for film festivals across the globe, including Toronto International Film Festival, Zurich Film Festival and directed the Hong Kong Lesbian & Gay Film Festival.  She is the President of Janitor Interactive: a production company specializing in games.

This is her personal page.

ICM week 2 - animated fishies!

This is by Clio Davis and me. We were hoping to make the fish turn around, but we think it is a little more advanced than we are capable of right now.

So, it goes in reverse with mouse clicks, and can be stopped with a key press.

Colour is altered by mouse movement, and bubbles are generally randomly.

the animation can be seen at: http://www.vicciho.com/week2fish/

the code is below:

###

float firstvariable; float eyevariable; float finv1; float finv2; float finv3; float finv4; float tailv1; float tailv2; float tailv3; float tailv4; float fish3body; float fish3eye; float eye2; float dir;

void setup() { size(500, 500); smooth(); firstvariable=90; eyevariable=100; finv1=83; finv2=70; finv3=380; finv4=398; tailv1=50; tailv2=15; tailv3=423; tailv4=480; fish3body =380; fish3eye=410; eye2 = 360;

dir = 1; }

void draw() {

println(mouseX + " ," + mouseY);

firstvariable=firstvariable+1*dir; tailv1=tailv1+1*dir; tailv2=tailv2+1*dir; tailv3=tailv3-1*dir; tailv4=tailv4-1*dir; eyevariable=eyevariable+1*dir; fish3body=fish3body-1*dir; finv1=finv1+1*dir; finv2=finv2+1*dir; finv3=finv3-1*dir; finv4=finv4-1*dir; eye2 = eye2-1*dir;

background(26, 124, 232, random (0, 100)); //FISH 1 //FISH BODY strokeWeight(5); fill(225, pmouseX, pmouseY);

ellipse(firstvariable+1, 50, 75, 50); //FISH TAIL triangle(tailv1+1, 50, tailv2+1, 25, tailv2+2, 75); //FISH FIN strokeWeight(3); fill(150, 0, 0); triangle(finv1+1, 50, finv2+1, 55, finv2+1, 40); //FISH EYE fill(225); ellipse(eyevariable+1, 45, 10, 10);

//FISH 2 //FISH BODY strokeWeight(5); fill(225, pmouseY, pmouseX); ellipse(firstvariable+1, 120, 75, 50); //FISH TAIL triangle(tailv1+1, 120, tailv2+1, 95, tailv2+2, 145); //FISH FIN strokeWeight(3); fill(150, 0, 0); triangle(finv1+1, 120, finv2+1, 125, finv2+1, 110); //FISH EYE fill(225); ellipse(eyevariable+1, 115, 10, 10);

//bubbles fill(230, 40); ellipse (random (width), random(height), 25, 25);

//fish3

//fish 3 body strokeWeight(5); fill(random(70,100), pmouseY, pmouseX); ellipse(fish3body-1, 350, 75, 50);

//fish3 tail

triangle(tailv3-1, 350, tailv4-1, 325, tailv4-1, 375);

//FISH 3 EYE fill(random (100,150)); ellipse(eye2-1, 345, 10, 10);

//FISH 3 FIN strokeWeight(3); fill(random (150,200)); triangle(finv3-1, 350, finv4-1,340,finv4-1,360); }

void mousePressed () { dir = dir * -1; }

void keyPressed () {

noLoop(); }

###

PComp documentation - week 2

Just what is interactivity?