After tweaking your example, trying various integer RGB values with little luck,
I noticed you really have floating point for RGB inputs when setting color on the API.
You have integers in your example code.
Which is fairly standard, and I would have assumed also.
But it was confusing for a while.
Pity you cannot do an overloaded function with float/int.
At any rate, you may want to fix your examples. Super low priority.