Practice Quizzes

Questions from these quizzes will appear on the final exam. Please practice these as many times as is necessary!

Coding Practice

There will be a section of the final exam where you will need to write code to demonstrate your understanding of the basic concepts taught in this class. Please use the OpenProcessing sketch to write your code. If you are unsure about the problem, please refer to the solutions and explanations below. But try to do the coding first!!

OpenProcessing Sketch

スタディガイド - Atticus

Practice Problem1

Write a p5.js script that changes the background color to green if the mouse is in the left half of the canvas and yellow if the mouse is in the right half of the canvas.

Practice Problem 2

Write a p5.js script that changes the color of a circle when the mouse is pressed. The circle should change to red when the left mouse button is pressed and blue when the mouse is not pressed.