• Randomize RGB value
  • Convert RGB values to binary
  • display the binary values and RGB values to show what is going on in function
  • dislays the color that coresponds to the RGB value
  • user guesses the RGB value

  • generateRandomColor: Generates random binary values for red, green, and blue components and applies the color to the color box.
  • getRandomBinary: Generates a random 8-bit binary value.
  • binaryToDecimal: Converts a binary value to decimal.
  • checkColor: Compares the user’s input with the generated color and displays the result.

Questions and concerns

  • I want to make it some sort of game but I do not know if people can actually gues RGB or binary values
  • find some other way to make it interactive