The constructor allows float values for percentages (e.g, 0.8 == 204 == CC) and integers (204 == CC).
As a result, the value 1 is being interpreted as 100% or 255. This is almost certainly not what the developer wanted.
Ideas:
- require 1.0, not 1, for 100%
- ignore 1 as a percentage value altogether