Skip to content

a jQuery/jQuery-Color Plugin for substracitve mixing of colors

Notifications You must be signed in to change notification settings

balesniy/Color_mixer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Mixer

For substractive mixing of colors. Requires jQuery and jQuery Color

Usage

includes:

<script type="text/javascript" src="http://code.jquery.com/	jquery-1.8.1.min.js"></script>

<script type="text/javascript" src="jquery-color/jquery.color.js"></script>

<script type="text/javascript" src="color_mixer.js"></script>

Mixing Colors:

color_1 = $.Color("#F5FF00");
color_2 = $.Color("#00C2FF");

result_color = Color_mixer.mix(color_1,color_2);

$("body").css("background-color",result_color.toHexString());

Mix more than two Colors:

colors = new Array($.Color('#F5FF00'), $.Color('#00C2FF'), $.Color('#00C2FF'));

result_color = Color_mixer.mix(colors);

Demo

Demo

About

a jQuery/jQuery-Color Plugin for substracitve mixing of colors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 53.5%
  • JavaScript 46.5%