Skip to content

A smile Background Color Changer. You can find new colors from this project. View Demo by clicking on link in README.md file

License

Notifications You must be signed in to change notification settings

Sagar-Sharma-7/background-color-changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi, I'm Sagar Sharma

This is Smile Background Color Change. You can find new colors with this project...


If you have any crazy idea then please pull request...

Result




Text Editor Used

alttext

Languages Used

html css js


JavaScript Algorithm For Random Color

const body = document.querySelector("body");
randomColor.addEventListener("click", () => {
    let r = Math.floor(Math.random() * 256);
    let g = Math.floor(Math.random() * 256);
    let b = Math.floor(Math.random() * 256);
    body.style.backgroundColor = `rgb(${r}, ${g}, ${b})`;
});

Cloning this repositary using command line

  1. Open Git Bash.
  2. Change the current working directory to the location where you want the cloned directory.
  3. Type git clone https://github.com/Sagar-Sharma-7/background-color-changer.git
  4. Press Enter to create the clone of this repositary. `

How to reach me?

ForTheBadge makes-people-smile



Follower


ForTheBadge built-with-love ForTheBadge makes-people-smile

alttext License: MIT

Releases

No releases published

Packages

No packages published