Use only minimum color functions

Rather than unnecessarily inflating file size with an entire color library, remove the library and replace it with only the minimal set of color functions needed for pattern generation.