logo

Crowdly

Browser

Додати до Chrome

Given the following code, which statement should be added to draw() so that the ...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Given the following code, which statement should be added to draw() so that the square keeps re-entering from the left side once it leaves the canvas on the right?

let squareX = 0;

function setup() {

  createCanvas(400, 300);

}

function draw() {

  background(200, 200, 200);

  rect(squareX, 150, 20, 20);

  squareX = squareX + 2;

}

0%
0%
0%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на elearning.aua.am?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome