* Creates an instance of the RGBA class. * * @param r - The red component of the RGBA color. * @param g - The green component of the RGBA color. * @param b - The blue component of the RGBA color. * @param a - The alpha component (opacity) of the RGBA color.
( r: number, g: number, b: number, a: number, )
| 70 | * @param a - The alpha component (opacity) of the RGBA color. |
| 71 | */ |
| 72 | constructor( |
| 73 | r: number, |
| 74 | g: number, |
| 75 | b: number, |
| 76 | a: number, |
| 77 | ) { |
| 78 | void super(r, g, b) |
| 79 | this.a = a |
| 80 | } |
| 81 | |
| 82 | /** Returns a string representation of the RGBA color in the format "rgb(r g b / a)". */ |
| 83 | toString = rgba_to_string.bind(null, this) |
nothing calls this directly
no outgoing calls
no test coverage detected