Creates a new RGB color object with the specified components.
This is the primary factory function for creating RGB colors in the library. The created object includes methods for conversion to other color spaces and string representations.
The red component (0-1)
The green component (0-1)
The blue component (0-1)
Optional
The alpha (opacity) component (0-1), optional
A new RGB color object
Creates a new RGB color object with the specified components.
This is the primary factory function for creating RGB colors in the library. The created object includes methods for conversion to other color spaces and string representations.