Codekids Quiz 7

See how much you remember!

Try to answer the following questions:

1. What is 'alpha' in computer graphics?

2. This code makes a dot in the middle of the window. What colour will it be?

size(400,400);

background(0,0,0);

stroke(255,255,255,50);

point(200,200);

3. How do you make something look like it's moving in Processing?

 

4. What HSB in colorMode(HSB,100); for?

 

 

5. What will happen?

void setup()
{
  size(400,400);
  background(0);
}


int mrDot1X = 0;
int mrDot1Y = 200;
int mrDot2X = 200;
int mrDot2Y = 0;


void draw()
{
  stroke(255,0,0);
  point(mrDot1X, mrDot1Y);
  stroke(0,0,255);
  point(mrDot2X, mrDot2Y);
  
  mrDot1X +=1;
  mrDot2Y +=1;
}
			

 

6. What will happen if you tell processing the following?

size(400, 400);
background(0,0,0);
stroke(100,50,255);
mrX = 200;
mrY = 200;
point(mrX, mrY);

7. Don't forget the _______?

 

Go back to the home page.