I'm trying to replicate an effect on old maps like this one where a region has a hard exterior border color that gradually fades out to the interior of the region. I borrowed some ideas and code from this page and this one. The color scheme is from Color Brewer, and the map is made with D3.