source code of colorBBA