Skip to content

DevonBernard/Hex-Color-Mixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

This JavaScript project allows anyone to easily combine any two hex colors in any desired ratio.

Installation Instructions

Download hexMixer.js and include it on any page you want to mix two hex colors.

Simple Example

<script type="text/javascript" src="./hexMixer.js"></script>
<script>
    document.getElementById("mydiv").style.backgroundColor = HexMixer('#FFFFFF', '#000000', 50);
</script>

The first two parameters must be two hex color codes (with or without the pound sign), and the third must be a percent from 0 to 100.

Demo

A live demo can be found at http://dbcoding.com/HexColorMixer

Contributors

Devon Bernard

About

This JavaScript project allows anyone to easily combine any two hex colors in any desired ratio.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published