2
answers
0
watching
158
views
30 Aug 2018
34. (2 points) Add the missing method, blackSquare(), to the program below so it produces the image shown. The squares are filled with black and have a black outline. (Hint: Using rectMode(CENTER) makes it easier.) void setup() { int sz = 5; for (int y = 5; y < height; y = y + sz*2) { blackSquare (width-y, y, s2); fill (255); // white ellipse (width - y, y+sz, sz, sz); SZ = S2 + 2;
34. (2 points) Add the missing method, blackSquare(), to the program below so it produces the image shown. The squares are filled with black and have a black outline. (Hint: Using rectMode(CENTER) makes it easier.) void setup() { int sz = 5; for (int y = 5; y < height; y = y + sz*2) { blackSquare (width-y, y, s2); fill (255); // white ellipse (width - y, y+sz, sz, sz); SZ = S2 + 2;
29 Jun 2023
Nelly StrackeLv2
1 Sep 2018
Already have an account? Log in