This is the code for Chapter 3, Figure 11 from D3.js in Action that uses d3.rgb() and its .lighter() and .brighter() functions.