Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

Given this code: if (mouseX < pmouseX && mouseY > pmouseY) { background(128); } else { background(0); } Fill in this table to show what the background color will be for the given values mouseX pmouseX mouseY pmouseY color 50 40 70 60 60 30 20 90 30 50 40 10 20 80 50 75 I am not sure how this is figured out in processing.

Computer Science
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

I'm not really sure what you're doing, but looking at it is seems like you would either fill it with 128 or 0. For the first one it shows mouseX is > pmouse x and mouseY is above pmouseY soit's a 0. I guess the rest will be filled out as well..
yahh, just like what KonradZuse says. If mouseX < pmouseX & mouseY > pmouseY then the color would be 0. Other than that, the color will be 128. So look at line 3, mouseX is less than pmouseX but mouseY is greater than pmouseY so that makes the color 128.
The color part is given to you. The code says if mouseX < pmouseX & mouseY > pmouseY then the color would be 0 because the code says "background(0)" which is black & the other case is "background(128)" which is Idk which color.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question