Pixels - Grayscale Color

3 important questions on Pixels - Grayscale Color

What is default setting for stroke(); ?

The colour of the outline will be 0 (which is black).

What is default setting for fill(); ?

The default color of the interior of the shape will be 255 (which is white).

At what point of coding will you write the lines stroke(); or fill(); ?

You write down the functions stroke(); and fill(); just before you write the function for a shape.

Processing will use the last specified color.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo