logo

Crowdly

Browser

Add to Chrome

Given the following code, a student holds the mouse down for a few seconds, then...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Given the following code, a student holds the mouse down for a few seconds, then releases it. What do they observe?

function setup() {

  createCanvas(500, 500);

  background(220, 220, 220);

}

function draw() {

  if (mouseIsPressed) {

    fill(255, 0, 0);

  } else {

    fill(0, 0, 255);

  }

  ellipse(250, 250, 80, 80);

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on elearning.aua.am?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome