"See Some Art" Option
First the program will use a couple of prompt boxes to ask the user for two things:
- The number of rows
- The number of columns
Then the program will create a random grid of colors (it's art!) with as many rows and columns as were specified
by the user. Below is a screenshot of the output in the case where there are
20 rows and 30 columns. (Scroll down for hints.)
Hints
- Obviously, this is a table with the number of rows and columns specified by the user
- Each cell is given a background color that is determined randomly. For each cell (td element),
you should
generate three random values (red, green, and blue) each in the range from 0 to 255. Then
use "rgb" to set the background-color property for the cell using the three random values.
- Using CSS style rules, you should set the table's width and height so that they occupy the
entire width and height of the screen. I suggest using vw and vh units for this.
- To eliminate scroll bars that might appear, set the margin for the body element to 0px.
- Set the background of the body to black instead of doing table borders.