COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Draw a shape that has been previously stated in a variable.
|
|
Draw a shape with the color specified.
|
|
Set the color for future shapes.
|
|
Fills the background with a specified color.
|
Detailed explanation-1: -SETFLOODCOLOR [0 0 0]-SETFC, for short-lets you fill a closed shape with a color. You must go inside the shape to use this command.
Detailed explanation-2: -You can do so using the begin fill() and end fill() functions. These two functions are used to enclose a set of Python Turtle commands that will draw a filled shape using the current fill color. So if the current pen color is blue, then any shape you draw will be filled with the color blue.
Detailed explanation-3: -The Paint Bucket tool is used to fill a selected area with a color or pattern by clicking on a pixel in that area.
Detailed explanation-4: -To fill an HTML5 Canvas shape with a solid color, we can set the fillStyle property to a color string such as blue, a hex value such as #0000FF, or an RGB value such as rgb(0, 0, 255), and then we can use the fill() method to fill the shape.