Addresses some of the main concerns of my previous rendition, mainly separating the concept of a gradient and the interpolation of colors.
By not requiring colors to be a TextColor the API interface is greatly simplified (far less conversions from rgb and back). However, this requires an additional step on the user's end to convert from whatever color space they are using (say, HSV, or perhaps, (ok)LAB)
I feel that this interface is more versatile and easier for users to extend on their end.
Addresses some of the main concerns of my previous rendition, mainly separating the concept of a gradient and the interpolation of colors.
By not requiring colors to be a TextColor the API interface is greatly simplified (far less conversions from rgb and back). However, this requires an additional step on the user's end to convert from whatever color space they are using (say, HSV, or perhaps, (ok)LAB)
I feel that this interface is more versatile and easier for users to extend on their end.