Began porting color manipulation functions out to external library.