RGB formula supports values 0 to 1 inclusive. Thanks to suggestion and
code from Gary Harper.