prepare for a new hsv2rgb implementation

this is intended for microcontroller use, so it will be optimized for a 8 bit cpu target