170k views
0 votes
A digital artist is writing a program to draw a face. This is the part of the code that draws the eyes and pupils: eyeSize ← RANDOM(5, 20) CIRCLE("white", 20, 20, eyeSize) CIRCLE("white", 40, 20, eyeSize) pupilSize ← RANDOM(2, 5) CIRCLE("black", 20, 20, pupilSize) CIRCLE("black", 40, 20, pupilSize) The code relies on the CIRCLE() procedure from a drawing library, which accepts four parameters for the circle's fill color, x position, y position, and diameter.

a. two equally-sized eyes ranging in size, with a minimum size of 6 pixels and a maximum size of 19 pixels. each eye has a black pupil that ranges in size from a minimum of 3 pixels to a max of 4 pixels.
b. two equally-sized eyes ranging in size, with a minimum size of 6 pixels and a maximum size of 20 pixels. each eye has a black pupil that ranges in size from a minimum of 3 pixels to a max of 5 pixels.
c. two equally-sized eyes ranging in size, with a minimum size of 5 pixels and a maximum size of 20 pixels. each eye has a black pupil that ranges in size from a minimum of 2 pixels to a max of 5 pixels.
d. two equally-sized eyes ranging in size, with a minimum size of 5 pixels and a maximum size of 19 pixels.

User Met Kiani
by
8.2k points

1 Answer

3 votes

Final answer:

The code described is used in digital art to draw the eyes of a face with random sizes using a procedure for creating circles. The sizes for the eyes range from 5 to 20 pixels and pupils range from 2 to 5 pixels in diameter.

Step-by-step explanation:

Adobe Illustrator is a powerful vector illustration software that allows users to create digital illustrations and artwork. One of the main advantages of Adobe Illustrator is its scalability. This makes Adobe Illustrator ideal for creating logos, icons, and text effects since they will look equally good at any size. The concerns programming and digital art, specifically about the code used to draw a face, or more precisely, a pair of eyes with pupils. To create eyes and pupils within certain size ranges, random values are generated for both the eye size and pupil size using a RANDOM function.

The code provided shows that the eyes can have a minimum size of 5 pixels and a maximum size of 20 pixels, with pupils ranging between 2 and 5 pixels in diameter. These sizes are then used in a drawing library procedure, CIRCLE(), to render the eyes and pupils with specified colors and sizes on a digital canvas.

User Bhola Prasad
by
8.1k points