A simple JavaScript project that generates random colors in both HEX and RGB formats.
This project is a simple JavaScript project that generates random colors in both HEX and RGB formats. The project includes features such as start, stop functionality, the ability to copy the generated color code, and a display of the generated color.
- Generate Random Colors: Click the
Start
button to initiate the generation of random colors in bothHEX
andRGB
formats. - Stop Generation: Press the
Stop
button to halt the generation of random colors. - Copy Color Code: Easily copy the generated color code by clicking the
Copy
button. - Color Display: A visual representation of the generated color is displayed on the page.
-
Clone the repository:
git clone https://github.com/your-username/Random-Color-Generator-JavaScript-Project.git
- Open
index.html
in your preferred web browser. - Interact with the buttons to
generate
,stop
, andcopy
random colors.
The random color generator leverages the setInterval
method to generate the color every second. The clearInterval
method is used to pause the random color to generate. The generated color is displayed on the interface by manipulating the DOM.
- HTML5
- CSS3
- JavaScript
Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to customize the content based on your project's specific details. Add sections or details that you find relevant for showcasing your skills and providing information to potential users or contributors.