Skip to content

BCAPATHSHALA/Random-Color-Generator-JavaScript-Project

Repository files navigation

Random Color Generator JavaScript Project

A simple JavaScript project that generates random colors in both HEX and RGB formats.

Table of Contents

Introduction

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.

Screenshot

App Screenshot

Features

  • Generate Random Colors: Click the Start button to initiate the generation of random colors in both HEX and RGB 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.

Installation

  1. 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, and copy random colors.

How it Works

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.

Technologies Used

  • HTML5
  • CSS3
  • JavaScript

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or create a pull request.

License

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.

About

A simple JavaScript project that generates random colors in both HEX and RGB formats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published