Skip to content

theshobhitsingh/color_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Generate Random Colors

A simple web application that generates a random color each time a button is clicked. This project demonstrates basic JavaScript functionality and dynamic styling of HTML elements.

Features

  • Random Color Generation: Generates a new random RGB color when the button is clicked.
  • Dynamic Background Update: Updates the background color of a div with the generated color.
  • User Interface: A minimalistic design with a button to trigger the color change and a div to display the color.

Technologies Used

  • HTML: For structuring the web page.
  • CSS: For styling the page and its elements (referenced as style.css).
  • JavaScript: For handling the color generation and dynamic updates (referenced as app.js).

Installation

To use this project locally, follow these steps:

  1. Clone the Repository

    git clone https://github.com/yourusername/random-color-generator.git
    
  2. Navigate to the Project Directory cd random-color-generator

  3. Open the HTML File open index.html

Usage

Here’s how to use the Random Color Generator:

Generate a New Color

  1. Click the Generate button to generate a new random RGB color.
  2. The background color of the div below the button will change to the newly generated color.
  3. View the Color

Coder

Shobhit Singh

About

Everytime you click the button; a new color will be generated randomly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published