what is the difference between the COLOR and PAINT statement? In Q Basic
Answers
Answered by
21
It is that colours is while paint is a substance that is applied as a liquid or paste, and dries into a solid coating that protects or adds color/colour to an object or surface to which it has been applied.
Answered by
0
The difference between the COLOR and PAINT statements is :
- The COLOR statement in BASIC is used to change the text color on the screen. It is typically used in the following way:
COLOR [background], [foreground]
where the background is the color code for the background and the foreground is the color code for the text color.
- On the other hand, the PAINT statement is used to change the color of a pixel or an area of pixels on the screen. It is typically used in the following way:
PAINT [x], [y], [color]
where x and y are the coordinates of the pixel and color is the color code to be used.
- In summary, COLOR sets the text color on the screen, while PAINT sets the color of a pixel or an area of pixels on the screen.
#SPJ3
Similar questions