Assignment 2 – Making the sketch move

This is part of the next assignment – 2. The idea is to be able to use the location of the cursor to draw a circle.

The assignment is to replace the circle with a cross – like a + sign or a x multiplication sign. You can also look to making the cross thicker using the strokeWeight(number); command

You can add colour as well if you want.

This needs to proper sketch structure. You can use the code here as the basis.


// Variables

void setup()
{

//your setup code
size(300,300);



}

void draw()
{

// Your code

background(0);

ellipse(mouseX,mouseY,30,30);


}


Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s