Here is another paint mixer script. Unlike my Watercolour Mixer, this script works only with solid primary and secondary colours and not "watered down" colours. Each click on a colour corresponds to an equivalent sized load of paint that is added to however many lots of paint have already been added to the mixing area. The colour of the mixing area is then changed to reflect the addition of this unit of colour to how ever many units of colour have previously been added to the area (so mixing one lot of yellow to five lots of red will give a different result than if you used just one lot of each). The number of portions of each primary colour are displayed at the top right corner of each.
The only way to remove paint from the mixing area is to either click on the mixing area or the reset button and start over from the beginning.
Tho add the paint mixer script to your page you need to start by copying the following stylesheet and save it as paint.css.
This then gets attached into the head of your page using:
<link rel="stylesheet" type="text/css" href="paint.css"/>
The final step is to attach the script to the bottom of your page using:
This article written by Stephen Chapman, Felgall Pty Ltd.