* Creates an instance of the RGB class. * * @param r - The red component of the RGB color. * @param g - The green component of the RGB color. * @param b - The blue component of the RGB color.
( public r: number, public g: number, public b: number, )
| 49 | * @param b - The blue component of the RGB color. |
| 50 | */ |
| 51 | constructor( |
| 52 | public r: number, |
| 53 | public g: number, |
| 54 | public b: number, |
| 55 | ) {} |
| 56 | |
| 57 | /** Returns a string representation of the RGB color in the format "rgb(r g b)". */ |
| 58 | toString = rgb_to_string.bind(null, this) |
no outgoing calls
no test coverage detected