* Hex color constructor * @param {number} r Red value in hexadecimals * @param {number} g Green value in hexadecimals * @param {number} b Blue value in hexadecimals * @param {number} a Alpha value between 0 and 1
(r, g, b, a = 1)
| 14 | * @param {number} a Alpha value between 0 and 1 |
| 15 | */ |
| 16 | constructor(r, g, b, a = 1) { |
| 17 | this.r = r; |
| 18 | this.g = g; |
| 19 | this.b = b; |
| 20 | this.a = a; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Creates a Hex color from an RGB color |
nothing calls this directly
no outgoing calls
no test coverage detected