1. Home
  2. Computing & Technology
  3. JavaScript

Watercolour Mixer

3. Javascript

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction Stylesheet/HTML

With the Stylesheet and HTML codes for the watercolour mixer added to your web page, all that remains to be done is to obtain the Javascript. As you can see from the HTML that you just added there are two external Javascripts that are linked into your page.

The first of these two scripts is my mathArray class which the watercolour mixer uses to perform all of the colour calculations. You simply need to save a copy of that script as matha.js (you don't need to know how it works unless you want to use it with other scripts).

The final step is to copy the following code (which is the actual watercolour mixer javascript) and save it as paint.js.

You now have all of the pieces in place and should be able to see a working watercolour mixer script on your web page.

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.