Add a warning for calling Color3.new with numbers larger than 1

One common issue I’ve seen facing newer developers is that they don’t know the difference between Color3.new and Color3.fromRGB, and will often call Color3.new with numbers ranging from 2-255, which gives them a Color with channels greater than 255. This can be pretty confusing. Example

My proposed solution would be, as the title suggests, to create a warning in the output. Something along the lines of “Color3.new parameters out of range - did you mean to use Color3.fromRGB?” should tell developers what they’re doing wrong and how to fix it.

13 Likes