[doc]
[add] scale as a parameter to rgb conversion func
[doc] and rm unused var