It began with red paint at the UK Treasury, and ended in one of the most successful international climate initiatives.