Subtractive Color Mixing With jQuery - Color Mixer

File Size: 4.16 KB
Views Total: 858
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Subtractive Color Mixing With jQuery - Color Mixer

Color Mixer is a JavaScript (jQuery) color manipulation plugin for subtractive color mixing that mixes two provided colors together to create a third color.

How to use it:

1. Include the required jQuery library and jQuery color plugin on the page.

<script src="" 
<script src="" 

2. Download and include the Color Mixer plugin's script after jQuery.

<script src="color_mixer.js"></script>

3. Set alpha values for colors.

color1 = '#F5FF00'
color1 = color1.alpha(1);

color2 = '#00C2FF'
color2 = color2.alpha(.5);

4. The JavaScript to mix these two color together.

color = Color_mixer.mix(color1,color2);

This awesome jQuery plugin is developed by AndreasSoiron. For more Advanced Usages, please check the demo page or visit the official website.