(c: number)
| 18 | } |
| 19 | |
| 20 | function linearToSrgb(c: number): number { |
| 21 | const s = c <= 0.0031308 ? c * 12.92 : 1.055 * c ** (1 / 2.4) - 0.055 |
| 22 | return Math.max(0, Math.min(255, Math.round(s * 255))) |
| 23 | } |
| 24 | |
| 25 | // --------------------------------------------------------------------------- |
| 26 | // OOXML Color Modifiers |
no outgoing calls
no test coverage detected