Jonas Jenwald
498daadf3c
Simplify the applyOpacity helper function
...
This function only has a single call-site (if we ignore the unit-tests), where the colors are split into separate parameters.
Given that all the color components are modified in the exact same way, it seems easier (and shorter) to pass the colors as-is to `applyOpacity` and have it use `Array.prototype.map()` instead.
2026-03-29 14:52:06 +02:00
..
2026-03-22 15:49:06 +01:00
2025-04-06 21:43:16 +02:00
2026-03-26 21:39:32 +01:00
2026-01-30 13:26:19 +01:00
2026-01-25 17:20:14 +01:00
2026-03-25 15:18:50 +01:00
2026-03-19 17:18:25 +01:00
2026-01-25 14:22:19 +01:00
2024-11-03 16:13:58 +01:00
2026-03-15 22:03:39 +01:00
2026-03-22 15:49:06 +01:00
2025-03-05 10:29:59 +01:00
2026-02-01 18:21:13 +01:00
2026-03-07 19:03:02 +01:00
2026-03-19 17:18:25 +01:00
2025-07-04 00:53:51 +02:00
2025-03-01 14:21:05 +01:00
2026-03-29 14:52:06 +02:00
2024-10-04 20:00:19 +02:00
2025-02-10 19:09:51 +01:00
2020-04-14 12:28:14 +02:00
2026-03-19 17:18:25 +01:00
2026-03-19 17:18:25 +01:00
2026-02-01 18:21:13 +01:00
2025-10-29 17:15:31 +08:00
2023-03-03 17:25:11 -05:00
2026-02-20 22:43:42 +01:00
2026-03-15 22:03:39 +01:00
2026-03-19 17:18:25 +01:00
2025-04-06 21:43:16 +02:00
2022-05-04 15:21:30 +02:00
2026-03-15 22:03:39 +01:00
2026-03-19 17:18:25 +01:00
2026-03-19 17:18:25 +01:00
2026-02-01 18:21:13 +01:00
2026-03-16 09:29:17 +01:00
2026-03-19 17:18:25 +01:00
2025-12-22 17:41:53 +01:00
2020-09-06 12:23:59 +02:00
2020-04-14 12:28:14 +02:00
2026-03-10 14:51:03 +01:00
2022-09-08 12:38:17 +02:00
2026-02-01 17:56:06 +01:00
2025-04-13 16:48:19 +02:00
2025-04-13 16:48:19 +02:00
2026-03-19 17:18:25 +01:00
2025-07-24 22:01:45 +02:00
2022-04-29 14:46:30 +02:00
2025-10-29 17:34:34 +01:00
2026-03-19 17:18:25 +01:00
2026-03-22 15:49:06 +01:00
2025-12-09 13:12:20 +01:00
2025-09-04 17:17:34 +02:00
2021-05-02 21:00:29 +02:00
2025-04-06 12:12:37 +02:00
2023-04-17 14:31:23 +02:00
2026-03-24 17:08:04 +01:00
2026-03-19 17:18:25 +01:00
2025-11-07 14:57:48 +01:00
2022-09-21 17:20:23 +02:00
2024-02-11 11:45:09 +01:00
2023-06-04 13:44:15 +02:00
2024-12-18 17:00:45 +01:00
2023-03-23 12:57:10 +01:00